There have been a number of suggestions on how
to capture the STDLIST for jobs. Here is what we do for some of our jobs.
Note that the cleanup is just to make the file more readable when it hits
the pc side (especially getting rid of cctl.)
!# Use Qedit to clean up stdlist file
!echo T #!HPSPOOLID >QCMDS
!ECHO set keep var on >>QCMDS
!ECHO set lang=data >>QCMDS
!ECHO set keep code 0 >>QCMDS
!ECHO set keep cctl off >>QCMDS
!ECHO K STDLIST,temp >>QCMDS
!ECHO EXIT >>QCMDS
!RUN QEDIT.PUB.ROBELLE;INFO="USE QCMDS;E";PARM=128
And then we ftp them off to another server for archiving:
!ECHO exitonerror >ftpcmds
!ECHO open xx.xx.xx.x >>ftpcmds
!ECHO user testuser >>ftpcmds
!ECHO password >>ftpcmds
!ECHO cd stdlist >>ftpcmds
!ECHO put STDLIST !filename >>ftpcmds
!ECHO exit >>ftpcmds
!RUN FTP.ARPA.SYS;STDIN=FTPCMDS
!IF !FTPLASTERR < 0 then
! SHOWVAR FTP@
! SETJCW JCW 32768
!ENDIF