Recently I had to get some people started with a few utilities. I thought to share this here. They will be in the next few posts for searchability reasons.
There are more ways to Rome, as we say here, so please feel free share you variants in a comment. (I unfortunately need manually curate comments to filter out the spam which is even with this small site overwhelming.)
//STEP1 EXEC PGM=IKJEFT01 //INMVS DD DSN=TEST.TRADMVS.DATA, // DISP=SHR //OUTFILE DD FILEDATA=TEXT, // PATHOPTS=(OWRONLY,OCREAT,OTRUNC), // PATHMODE=SIRWXU, // PATH='/mydir/myunixfile.txt’ //SYSTSPRT DD SYSOUT=* //SYSPRINT DD SYSOUT=*//SYSTSIN DD * OCOPY IND(INMVS) OUTDD(OUTFILE) //*
Here’s a link to the IBM documentation on OCOPY.