Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CL command for FTP download.

Status
Not open for further replies.

pantherv

IS-IT--Management
Jun 18, 2003
6
GB
Greetings all. We have several routines to build files that are then downloaded to shared drives using FTP. Want to build the download commands into CL. Not exactly a CL specialist yet - can anyone point me in the right direction or to another thread already on this site. All help appreciated.
 
Something like
Code:
OVRDBF FILE(INPUT) TOFILE(&INPLIB/QFTPSRC) MBR(&INPMBR)
OVRDBF FILE(OUTPUT) TOFILE(&OUTLIB/QFTPSRC) MBR(&OUTMBR)
FTP RMTSYS(&TARGET)
with the following in a source member
Code:
support humbug1
lcd pgmpj01
cd pgmpj01
bin
put transfer
quit
logs on to the target system, changes the local and remote directories (libraries) and copies a save file across to the target machine. This code is part of a Command/CL-pgm which lets you pass the target and source member names then it does all of the rest, hence the variables in the OVRDBF stuff.

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top