Windows command line ftp client also accepts a “command file input” (-s option) 
so you can fill that file with any commands you need and then feed it to the 
ftp client.

However, caveat emptor – if your default TSO profile sets the PROFILE parameter 
to your user ID, that “cd pds.library” command will fail because it does not 
start with HLQ = your user ID.

Peter

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Bernd Oppolzer
Sent: Monday, May 20, 2024 5:54 PM
To: [email protected]
Subject: Re: ./ ADD - which utility? (RANT)


That's what I do all the time, too ... a little more info:



ftp <ip-name of mvs lpar>

/* mvs asks for user and password */

/* I am now at "USER01." ... if my TSO-ID is USER01 */

cd ..

/* I am now at "" ... top level */

cd pds.library

/* I get an answer like "pds.library is a partitioned data set" */

prompt

ascii

mget *

/* now all the members of 'pds.library' are transferred to the local

directory  */

bye



To do that more easily, I issue all those commands from REXX procedures

using the

console stack; some FTP clients allow the user and password issued from

the cmd line

(you can use free REXX interpreters like Regina REXX or Object REXX for

Windows to do that).

The REXX procedures are called by small CMD files (so that they can be

called easily from the cmd line).



Examples:



rmemb testpgm.pas pascaln.testpgm.src

smemb testpgm.pas pascaln.testpgm.src

rlib pascaln.testpgm.src



/* rmemb = receive member, smemb = send member, rlib = receive library */



Kind regards



Bernd





Am 20.05.2024 um 16:54 schrieb Schmitt, Michael:

> And ordinary command line FTP. For example, Windows:

>

> prompt

> ascii

> quote site notrail

> mget *

>

>

--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to