hi, my user can only use client access to upload and download file only (please assume there is only this method), is it possible for me to write a batch file to automate the upload and download. just like ftp, i can always write a script to put all the 'GET' command and trigger the FTP in CLP program. please advise. thanks
Software/Hardware used:
ASKED:
July 14, 2009 1:35 AM
UPDATED:
July 14, 2009 6:30 PM
with client access you can use the batch transfer programs rtopcb and rfrompcb in a dos bat file.
First, create/save file transfer request. Then call it from a batch file. ie rtopcb “c:night jobswebwebparts.dtf”
use the /? switch for more parameters.
sample of CLLE used to run a DOS batch file to do multiple transfers
PGM DCL VAR(&STRCMD) TYPE(*CHAR) LEN(55) + VALUE('C:DOWNLOADtransfer.bat') DCL VAR(&PCCMD) TYPE(*CHAR) LEN(55) STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) STRPCCMD PCCMD(&STRCMD) PAUSE(*NO) ENDPGMtransfer.bat contains
RFROMPC /F C:downloadtransfers.txt
transfers.txt contains
C:downloadstransfer1.TFR
C:downloadstransfer2.TFR
C:downloadstransfer3.TFR
C:downloadstransfer4.TFR
C:downloadstransfer5.TFR
C:downloadstransfer6.TFR
C:downloadstransfer7.TFR
call the CLLE from anywhere you can call it (menu/rpg pgm/ clle pgm)
I do believe this set up needs to interactive to work.
should be DOWNLOAD transfer.bat
and downloadtransfers all occurences
it is being left out on the screen but a BACKSLASH should be after the word download and downloads should be download(backslash. Also the C: backslash is missing.
Boulevard -
Here is a good explanation: http://www-03.ibm.com/systems/resources/systems_i_software_access_pdf_dataxfer.pdf
Phil
ARG!
http://www-03.ibm.com/systems/resources/systems_i_software_access_pdf_dataxfer.pdf