%let filetype=bankdeps; x cd /pub/data/&filetype/Tools; %let pgm=migrate_&filetype; filename pgm "&pgm..sas"; *--Migrate SAS datasets to v9, 64-bit format---; %macro init; x cd ..; *<---go up to the data library from the Tools library--; x mkdir v9; *<---where we store the converted datasets temporarily before moving them back--; x mkdir migrate_ods; *<---where we stored the temporary ods files---; %if &sysrc ne 0 %then %do; %put ****Initialization failed...program aborting ******** ; data _null_; abort abend; run; %end; %mend init; %*init ; %include '/pub/sas/macros/migrate_macros.sas'; *--downloaded from SAS web site, same as the template; options nocenter formdlim='-'; libname lib1 "/pub/data/&filetype"; libname &filetype (lib1); *<---alias required in order for the sql view to work--; libname lib2 "/pub/data/&filetype/v9"; libname ods "/pub/data/&filetype/migrate_ods"; title1 "Migrate &filetype Datasets to V9 64-bit Data Representation"; options mprint; options nonotes; %before; options notes; proc migrate in=lib1 out=lib2; run; options nonotes; %after; *------------------------------------------------------* * produce validation output for all the data sets which * only prints a listing of those attributes which * differ between the source and target libraries *------------------------------------------------------*; %checkdata; *------------------------------------------------------* * produce validation output for all the catalogs options notes; /*---after verifying that this ran correctly we need to do the following: x cd /pub/data/&filetype ; x mv v9/*.sas7b??? . ; x touch migrated_for_v9 ; x contents -ur ; You should also rerun the invoke_dosets job under v9 to regenerate the datasets.html page. ---*/