My current project validates transactions and outputs a valid report and an error report. My JCL is setup to output the Error Report right to printer (DD SYSOUT=A) while I'm required to use an IEBGENER to print out the Valid Report. The problem occurs with actually viewing the files in the SPOOL tab. The Error Report comes out fine with a print preview. The Valid Report (using IEBEGENER) only shows Column Headings and Record Numbers. When I actually double click the file (edit mode) all the records are present (just not formatted according to the COBOL). Here is the JCL for the first part of the job:
What am I doing wrong with this JCL or is it a Mainframe Express problem?
Thanks for any help!!
Code:
//PROJECT2 JOB 'PROJ2',CLASS=A,MSGCLASS=X
//*
//*************************************************************
//* THIS STEP SORTS AND VALIDATES USING COBOL, SYSOUT
//*************************************************************
//STEP1 EXEC PGM=VALIDATE
//SALEDATA DD DSN=SINPUT,DISP=SHR
//PEOPDATA DD DSN=PINPUT,DISP=SHR
//SORTFILE DD DCB=(LRECL=40,DSORG=PS,RECFM=F)
//PEOPSORT DD DSN=&&PEOPSRT,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=F,LRECL=40,DSORG=PS),
// SPACE=(TRK,(10,10),RLSE),UNIT=SYSDA
//ERRREP DD SYSOUT=A
//VALREP DD DSN=&&VOUT,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=F,LRECL=133,DSORG=PS),
// SPACE=(TRK,(10,10),RLSE),UNIT=SYSDA
//*
//***********************************************************
//* THIS STEP PRINTS A VALID REPORT
//***********************************************************
//STEP2 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
//SYSUT1 DD DSN=&&VOUT,DISP=SHR
//SYSUT2 DD SYSOUT=A
//*
What am I doing wrong with this JCL or is it a Mainframe Express problem?
Thanks for any help!!