Hi Cynthia, I tried to run the DS2CSV macro on z/os (in batch mode) and it doesn't like my inbound file reference. The file to be copied is a SAS library. I hope the macro will copy a SAS library file to a flat CSV file on the mainframe. Here is the JCL: //*------------------------------------------------------------------ //* DUMP OUT SAS LIBRARY XXMT007 //*------------------------------------------------------------------ //LETSGO EXEC SAS //WORK DD UNIT=SYSDA,SPACE=(CYL,(1000,1000),,,ROUND) //*XMT007 DD DSN=SGSM.PXXMT07.SASTAGSU,DISP=SHR //SYSIN DD * FILENAME XXMT007 'SGSM.PXXMT07.SASTAGSU'; FILENAME XXMTCSV 'SGSM.CXXMT07.SASTAGSU.CSV'; %DS2CSV (DATA=XXMT007,RUNMODE=B,CSVFREF=XXMTCSV); // Here is the syntax error: 1 FILENAME XXMT007 'SGSM.PXXMT07.SASTAGSU'; 2 FILENAME XXMTCSV 'SGSM.CXXMT07.SASTAGSU.CSV'; 3 %DS2CSV (DATA=XXMT007,RUNMODE=B,CSVFREF=XXMTCSV); ERROR: File WORK.XXMT007.DATA does not exist. NOTE: Execution terminating... Any suggestions? Thanks, Mike
... View more