21%mp_binarycopy(inref=tmp, outref=myref)
26 call symputx(
'string1_check',_infile_);
30 iftrue=(
"&string1"=
"&string1_check"),
31 desc=Basic String Compare,
32 outds=work.test_results
38%let path2=%sysfunc(pathname(work))/somefile.txt;
43%mp_binarycopy(inloc=
"&path2", outref=myref, mode=APPEND)
48 if _n_=2 then call symputx(
'string2_check',_infile_);
51 iftrue=(
"&string2"=
"&string2_check"),
52 desc=Append Check (file to ref),
53 outds=work.test_results
58%let path3=%sysfunc(pathname(work))/somefile3.txt;
66 put
"this should not be returned";
68%mp_binarycopy(inref=tmp3, outloc=
"&path3")
73 if _n_=1 then call symputx('string3_check',_infile_);
76 iftrue=("&string3"="&string3_check"),
77 desc=Append Check (ref to existing file),
78 outds=work.test_results
89%mp_binarycopy(inref=tmp4, outloc="&path3",mode=APPEND)
94 if _n_=2 then call symputx('string4_check',_infile_);
97 iftrue=("&string4"="&string4_check"),
98 desc=Append Check (ref to file),
99 outds=work.test_results
111%mp_hashdataset(work.test5,outds=myhash)
114%mp_binarycopy(inloc="%sysfunc(pathname(work))/test5.sas7bdat",
115 outloc="%sysfunc(pathname(work))/test5copy.sas7bdat"
119%mp_hashdataset(work.test5copy,outds=myhash2)
126 call symputx('test5a',hashkey);
130 call symputx('test5b',hashkey);
133 iftrue=("&test5a"="&test5b"),
134 desc=Ensuring binary copy works on binary characters,
135 outds=work.test_results