Examples of IDCAMS to Print
General JCL to print a file (sequential, VSAM, PDS member)
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INFILE DD DSN=name of file to be printed,DISP=SHR
//SYSIN DD *
PRINT INFILE(INFILE) CHARACTER
/*
Example of JCL to print the file ABCCO.TEST.DATA (could be sequential, VSAM, PDS member)
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INFILE DD DSN=ABCCO.TEST.DATA,DISP=SHR
//SYSIN DD *
PRINT INFILE(INFILE) CHARACTER
/*
Notes: Change CHARACTER to DUMP in order to print in both character and hex
Change CHARACTER to HEX in order to print in hex