print the whole cobol program



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

print the whole cobol program

Postby lxw039 » Thu Oct 30, 2008 6:29 pm

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.
lxw039
 
Posts: 47
Joined: Tue Oct 07, 2008 11:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: print the whole cobol program

 

Re: print the whole cobol program

Postby Bill Dennis » Thu Oct 30, 2008 6:43 pm

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: print the whole cobol program

Postby lxw039 » Thu Oct 30, 2008 11:18 pm

thanks for your help, my printer is in mainframe, could you tell me details about that(JCL), thanks again.
lxw039
 
Posts: 47
Joined: Tue Oct 07, 2008 11:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: print the whole cobol program

Postby dick scherrer » Fri Oct 31, 2008 12:56 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post