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

Reply via email to