Here's a step we regularly run:

=====
//FTPSTEP  EXEC PGM=FTP,PARM='remote-machine-IP-address 21 ( EXIT' 
//JOBCARDS  DD DSN=&&JOB,LRECL=80,RECFM=FB,BLKSIZE=0, 
//             SPACE=(80,(100,100)),UNIT=VIO,DISP=(NEW,PASS,DELETE) 
//SYSPRINT DD SYSOUT=* 
//INPUT    DD *,DLM='!!' 
c449630 password 
ascii 
get 'DBCNHPS2.HPS.MIS.FORMATS.CNTL(C449630F)' //DD:JOBCARDS 
site filetype=jes 
put //DD:JOBCARDS 
quit 
!! 
=====

This copies a file contraining a job stream from a remote system and 
writes it to a temporary file, then submits that temporary file to the 
internal reader.

This is probably described in the IBM manual "IP User's Guide and 
Commands", but I couldn't readily locate it in the index.

--
Jack Hamilton
Management Information & Analysis - Analytic Information Services
Kaiser Foundation Health Plan, Inc.
1950 Franklin Street, Oakland, California 94612
+1 510 987-1556 (KP tieline 8-427-1556)

NOTE:  This email document and attachments are covered by CA Evidence Code 
§1157 and CA Health and Safety Code §1370.

NOTICE TO RECIPIENT:  If you are not the intended recipient of this 
e-mail, you are prohibited from sharing, copying, or otherwise using or 
disclosing its contents.  If you have received this e-mail in error, 
please notify the sender immediately by reply e-mail and permanently 
delete this e-mail and any attachments without reading, forwarding or 
saving them.  Thank you.




Don Russell <[email protected]> 
Sent by: IBM Mainframe Discussion List <[email protected]>
02/05/2009 08:00 AM
Please respond to
IBM Mainframe Discussion List <[email protected]>


To
[email protected]
cc

Subject
[IBM-MAIN] EXEC PGM=FTP and "put"





I have an FTP process that writes a "temporary" file to a remote site.

Because put requires the local file name to be explicitly specified,
the "temporary" file must be catalogued.

Is there a way to specify a DD NAME to read from instead of the actual
local file name?

Something like
put (ddname) remote.file.name

It doesn't look like it from any doc I've seen, but it seems like such
a natural thing to do in an MVS batch environment. :-)

//S1 EXEC PGM=MHH     Miracle Happens Here
//STUFF DD DISP=(,PASS,DELETE),....  "text, sequential, flat file"
//*
//S2 EXEC PGM=FTP
//STUFF DD DISP=(OLD,DELETE)
//INPUT DD *
...
put (STUFF) remote.file.name
/*

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to