Re: COMMAND SHELL PROGRAMMING.
- From: JackOfAllTrades@xxxxxxxxxxx (Kenneth E Tomiak)
- Date: 8 Sep 2007 07:57:33 -0700
Wow is that bad. All these variables with no indication of how one would set
them. The first comment claims to get user's input but never prompts for
anyhing. Another comment claims to delete the script file but only empties it.
And it only handles one file.
Long ago I read :REM is quicker then REM. The DOS variables would allow a
user to pass in everything you need.
You do not need to specify USER unless your host does not require you to
signon. And if you do not need to signon, why are you?
But thanks for showing the reversed redirection method. Until now I have
always used:
Echo some text here >outputfile.txt
On Fri, 7 Sep 2007 15:21:33 +0530, Yogesh Mahajan
<yogesh.mahajan@xxxxxxxxxxxxxxxxx> wrote:
This could be done by REXX/ CList.==========================================================
But if you wish to do write FTP script on client receiving the file, you may
write a DOS shell script (.bat) like this:
=======================
REM Get user's input - Mainframe IP, FTP ID, Pwd etc...
REM Create downloading script, execute it (ftp) and delete it.
REM
SET strMember='%strInputFileNameFromUser%'
script.ftp ECHO USER %strUser%echo Downloading the file: %strMember% TO %strSProc%
script.ftp ECHO %strPwd%
script.ftp ECHO prompt n
ftp -n -s:script.ftp %strMainframe%script.ftp ECHO get %strMember% %strSProc%
script.ftp ECHO bye
TYPE NUL >script.ftp
NOTEPAD %strSProc%
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.
- Prev by Date: Tape Pool range control
- Next by Date: Re: Control Program of OS/360 reel tape
- Previous by thread: Re: COMMAND SHELL PROGRAMMING.
- Next by thread: Any help for Oracle on z/OS 1.8?
- Index(es):
Relevant Pages
|