View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
I am trying to submit a job using FTP. So used the below FTP step,
Code: |
//JS030 EXEC PGM=FTP,REGION=2M
//SYSPRINT DD SYSOUT=*
//FILEIN DD DSN=WELLS.FTP.JCLJOB,DISP=SHR
//OUTPUT DD SYSOUT=*
//INPUT DD *
Address (EXIT TIMEOUT 900
UserID
Password
QUOTE SITE FILETYPE=JES
TYPE E
MODE S
RECORD
SITE CONDDISP=DELETE
STATUS
LOCSTAT
PUT //DD:FILEIN
QUIT
/*
// |
Currently the FTP'ed job is in the PS - WELLS.FTP.JCLJOB
Is it possible anyway to remove the reference to the external file (WELLS.FTP.JCLJOB,DISP=SHR) and code the FTP'ed JCL instream on this JCL itself.
We don't want to create an extra dataset on client environment, so if the FTP'ed job can be coded on this JCL itself then it will be very helpful.
Please share your thoughts. Thank you. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You can try
Code: |
//JS030 EXEC PGM=FTP,REGION=2M
//SYSPRINT DD SYSOUT=*
//FILEIN DD DATA,DLM='##'
//whatever
//whatever
//whatever
//whatever
##
/*
//OUTPUT DD SYSOUT=*
//INPUT DD *
Address (EXIT TIMEOUT 900
UserID
Password
QUOTE SITE FILETYPE=JES
TYPE E
MODE S
RECORD
SITE CONDDISP=DELETE
STATUS
LOCSTAT
PUT //DD:FILEIN
QUIT
/*
// |
|
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Many Thanks Works Great! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Invoice on its way |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Sure will pay in person I've always wanted to eat at petit rue des bouchers with some Belgian Ale |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
No longer there unfortunately, the contract has expired.
Currently selling second hand cars to earn my crust |
|
Back to top |
|
|
|