HOWTO save SYSGEN output to file instead of printing

Sometime you need to save SYSGEN's output instead of just seeing or printing. The output can be too long or you should send / archive the info. The trick is catch all output to file. Then you cannot see prompt(s), and should print "blind" commands. Alternative, create job for that. Here is an examples:

!JOB SSGOUT,MANAGER.SYS
!SYSGEN,,,MYOUT.PUB.SYS
IO
LP
LD CLASS=DISC
EXIT
EXIT
!EOJ

Same, but using input file:

!JOB SSGOUT,MANAGER.SYS
!echo IO > MYIN
!echo LP >> MYIN
!echo LD CLASS=DISC >> MYIN
!echo EXIT >> MYIN
!echo EXIT >> MYIN
!SYSGEN,,MYIN,MYOUT.PUB.SYS
!EOJ

Now you have MYOUT.PUB.SYS file contains desired output. Transfer it using FTP to other place for your purpose. It is possible to "print" only desired devices from range:

     io> LD LDEV=1/20
     io> LD LDEV=(1/4,8/20)
     io> LD CLASS=DISC

If this was helpfull, please donate
Updated on Tue Apr 10 13:20:46 IDT 2012 by Oleg Volkov More documentations here