I am working with my mainframe running jobs via FTP and retrieving the result (of the Held queue) too through the same canal. The problem is, I have the "output queue" where the same JOBnnnnn left other information, and those reports I can only see via ISPF (option G.O). Is there anyway to see this reports via FTP? I learn to do this with this link: http://www.ibm.com/developerworks/systems/library/es-zosbatchjavav/
Example of the link (ftp's commands):
C:\>ftp 192.168.152.2
Connected to 192.168.152.2.
220-FTPD1 IBM FTP CS V1R5 at p390.qld.isi.com.au, 04:26:27 on 2006-09-06.
220 Connection will close if idle for more than 5 minutes.
User (192.168.152.2:(none)): isielw
331 Send password please.
Password:
230 ISIELW is logged on. Working directory is "ISIELW.".
ftp> quote SITE FILETYPE=JES
200 SITE command was accepted
ftp>
ftp> dir
200 Port request OK.
125 List started OK for JESJOBNAME=ISIELW*, JESSTATUS=ALL and JESOWNER=ISIELW
JOBNAME JOBID OWNER STATUS CLASS
ISIELW TSU00629 ISIELW OUTPUT TSU ABEND=522 3 spool files
ISIELW TSU00609 ISIELW OUTPUT TSU ABEND=522 3 spool files
ISIELW TSU00294 ISIELW OUTPUT TSU ABEND=522 3 spool files
ISIELW TSU00250 ISIELW OUTPUT TSU ABEND=522 3 spool files
ISIELW TSU00218 ISIELW OUTPUT TSU ABEND=522 3 spool files
ISIELW TSU00199 ISIELW OUTPUT TSU ABEND=622 3 spool files
ISIELW TSU00171 ISIELW OUTPUT TSU ABEND=522 3 spool files
250 List completed successfully.
ftp: 524 bytes received in 0.06Seconds 8.45Kbytes/sec.
ftp> dir TSU00629
200 Port request OK.
125 List started OK for JESJOBNAME=ISIELW*, JESSTATUS=ALL and JESOWNER=ISIELW
JOBNAME JOBID OWNER STATUS CLASS
ISIELW TSU00629 ISIELW OUTPUT TSU ABEND=522
--------
ID STEPNAME PROCSTEP C DDNAME BYTE-COUNT
001 JES2 K JESMSGLG 962
002 JES2 K JESJCL 13983
003 JES2 K JESYSMSG 17176
3 spool files
250 List completed successfully.
ftp: 340 bytes received in 0.03Seconds 10.63Kbytes/sec.
ftp>
If I wouldn't have JOBS, the message "No jobs found on Held queue" is displayed.
This is my current result:
230 CERVHM is logged on. Working directory is "CER.".
ftp> quote site filetype=jes
200 SITE command was accepted
ftp> dir
200 Port request OK.
125 List started OK
CERVHM2 JOB01948 OUTPUT 4 Spool Files
CERVHM1 JOB03024 OUTPUT 3 Spool Files
250 List completed successfully.
ftp: 148 bytes recibidos en 0,02segundos 7,40a KB/s.
ftp> dir JOB01948
200 Port request OK.
125 List started OK
CERVHM2 JOB01948 OUTPUT 4 Spool Files
CERVHM1 JOB03024 OUTPUT 3 Spool Files
250 List completed successfully.
ftp: 148 bytes recibidos en 0,02segundos 7,05a KB/s.
ftp>
Regards!
P.D. I am new in mainframe's world, let me now if you don't understand the question. Also I made a Java program to do the same, but I have the same question.