Page 1 of 1

print the whole cobol program

PostPosted: Thu Oct 30, 2008 6:29 pm
by lxw039
Hi, can anybody tell me how to print my whole cobol source code? right now Ijust can output
a screenshot one time, I will appreciate for that if someone have jcl code do that for my reference.
thank you ahead.

Re: print the whole cobol program

PostPosted: Thu Oct 30, 2008 6:43 pm
by Bill Dennis
Where's your printer?

On a mainframe? Use pgm IEBGENER to read your SOURCE.PDS(member) on SYSUT1 and create a copy on SYSUT2 as SYSOUT.

On your PC? You can download to your PC as text file and print via Notepad.

Re: print the whole cobol program

PostPosted: Thu Oct 30, 2008 11:18 pm
by lxw039
thanks for your help, my printer is in mainframe, could you tell me details about that(JCL), thanks again.

Re: print the whole cobol program

PostPosted: Fri Oct 31, 2008 12:56 am
by dick scherrer
Hello,

/*ROUTE PRINT U1311                                     
//GENR     EXEC PGM=IEBGENER                           
//SYSUT1   DD DSN=THE.SOURCE.PDS(YOURCODE),DISP=SHR     
//SYSUT2   DD SYSOUT=*                                                               
//SYSPRINT DD SYSOUT=*                                 
//SYSIN    DD DUMMY                                     
//         

Check with your system support people to see if you need the ROUTE PRINT and if so, which destination you should use.

I'd suggest you also download the file to your desktop if you want to have a local copy.