|
To answer part of your question, the FTP client will accept an override for input and output. You do this with an OVRDBF command. So, create a file (I create a source physical file so I can edit the members using PDM). Add your FTP commands in there, and use that for input (I call mine FTPINPUT): username password get /somedirectory/CHEMCD.TXT somelibrary/chemf.somemember quit Also, create another file for output from the FTP server, and just give it a blank member (I call mine FTPOUTPUT). Then run: OVRDBF INPUT MYLIB/FTPINPUT OVRDBF OUTPUT MYLIB/FTPOUTPUT FTP RMTSYS('192.168.0.1') FTP will then read from your input file and do everthing it says. It will put responses to your output file. Regards, Jim Langston "Angela Wawrzaszek(EXCH)" wrote: > When you say to write the script on the 400- do you mean write a cl? I > guess this sounded better to me since I do not have very much experience > with doing anything in dos. I thought if I wrote a cl that passed in the 2 > pos character field I want then start ftp in the cl: > > *************** Beginning of data ************************************* > PGM PARM(&CHEMCD) > DCL VAR(&CHEMCD) TYPE(*CHAR) LEN(2) > FTP RMTSYS('192.168.0.1') > /* USER */ > ???? > /* PASSWORD */ > ???? > get networkpc\CHEMCD.TXT CHEMF ???? > EXIT > ENDPGM > How do i supply the password or profile? Do I still need runrmtcmd? I have > done ftp within bat files but then I don't know how to do paramaters, so > this sounded better, but I'm still lost. > > Thanks for any help! <SNIP> +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.