I have a job in JES on the mainframe that I want to retrieve or list directory via FTP.
I'm able to do so easily if I want one or all of the OUTPUT DDNames of my job (In SDSF, with "INPUT OFF" command)
SDSF JOB DATA SET DISPLAY - JOB MYUSERUL (JOB06197) LINE 1-8 (8)
COMMAND INPUT ===> SCROLL ===> PAGE
PREFIX=* DEST=(ALL) OWNER=* SYSNAME=
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
JESMSGLG JES2 2 MYUSER X LOCAL 16
JESJCL JES2 3 MYUSER X LOCAL 74
JESYSMSG JES2 4 MYUSER X LOCAL 152
FILESEQ ETAPE010 103 MYUSER X LOCAL 10
PRINT ETAPE010 104 MYUSER X LOCAL 17
IMPRIM ETAPE020 107 MYUSER X LOCAL 28
LISTUTV ETAPE020 110 MYUSER X LOCAL 2
LISTE ETAPE020 111 MYUSER X LOCAL 4
To do so, I execute a DIR command and then a GET command With the DDName id.
ftp> dir j06197
200 Port request OK.
125 List started OK for JESJOBNAME=MYUSER*, JESSTATUS=ALL and JESOWNER=MYUSER
JOBNAME JOBID OWNER STATUS CLASS
MYUSERUL JOB06197 MYUSER OUTPUT T RC=0000
--------
ID STEPNAME PROCSTEP C DDNAME BYTE-COUNT
001 JES2 X JESMSGLG 688
002 JES2 X JESJCL 2735
003 JES2 X JESYSMSG 9553
004 ETAPE010 X FILESEQ 244
005 ETAPE010 X PRINT 1116
006 ETAPE020 X IMPRIM 3504
007 ETAPE020 X LISTUTV 173
008 ETAPE020 X LISTE 248
8 spool files
250 List completed successfully.
ftp> get j06197.1 D:\test.txt
Unfortunately, the information i'm seeking is in the INPUT DDNames (In SDSF, with "INPUT ON" command)
SDSF JOB DATA SET DISPLAY - JOB MYUSERUL (JOB06197) LINE 1-13 (13)
COMMAND INPUT ===> SCROLL ===> PAGE
PREFIX=* DEST=(ALL) OWNER=* SYSNAME=
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
JESJCLIN 1 MYUSER X 55
JESMSGLG JES2 2 MYUSER X LOCAL 16
JESJCL JES2 3 MYUSER X LOCAL 74
JESYSMSG JES2 4 MYUSER X LOCAL 152
$INTTEXT JES2 5 MYUSER A 25
$JOURNAL 6 MYUSER A 175
FICIN ETAPE010 101 MYUSER X 3
CARTE ETAPE020 102 MYUSER X 2
FILESEQ ETAPE010 103 MYUSER X LOCAL 10
PRINT ETAPE010 104 MYUSER X LOCAL 17
IMPRIM ETAPE020 107 MYUSER X LOCAL 28
LISTUTV ETAPE020 110 MYUSER X LOCAL 2
LISTE ETAPE020 111 MYUSER X LOCAL 4
How can I retrieve one of the INPUT DDName via FTP (Ex: the "JESJCLIN") Is there a way to se INPUT DDNames via the DIR command too ?
UPDATE
Utimate goal is, for example, resubmiting a job from FTP. For this I need the initial JCL and also everything "inline", both only accessible using "INPUT ON"
I'm in no way talking about Production jobs. I'm talking about a programmer's job (or a "Testing job") that was submitted manually on the mainframe by the programmer, and I would like it to be possible for that same programmer to access the full INPUT information of the submitted job via an external PC tool, including submitted JCL with also content of inline DDs, to eventually do something with it, one example use case (but not the only one) would be to resubmit the same exact job.
Thanks !