I required help to create the REXX program for FTP in Mainframe. I have
to check the file availability on server using REXX. Can anyone help me
on this.
Thanks & Regards
Siva
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
Well AFAIK RXFTP isn't available for z/OS.
However, you could tackle this by invoking FTP, looking for the file
and directing the output to a dataset, then read the dataset to see if
the file was found.
bobh
On Thu, 7 Aug 2008 14:47:59 +0530
"Gangireddy, Siva Pratap Reddy"
bobh
--------------------------------------------------------
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.
--------------------------------------------------------
Thanks and Regards,
Gangireddy Siva Pratap Reddy
Couldn't you just check the DSN with "available = SYSDSN('myrexx.exec')"
before before calling FTP or listdsi ?
Jack Kelly
202-502-2390 (Office)
He's probably doing a GET to retrieve the file from the remote end. So
he needs to do a "cd" (maybe) and a "dir" and check the status that the
file exists on the far end.
--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology
The information contained in this e-mail message may be privileged
and/or confidential. It is for intended addressee(s) only. If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense. If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.
--------------------------------------------------------
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.
--------------------------------------------------------
----------------------------------------------------------------------
I got the solution to my requirement and sharing the same here. Thanks
for a lot for your help.
/* rexx */
hostname = 'your.ftp.server'
input.1 = 'userid pw'
input.2 = 'cd mydir'
input.3 = 'DIR FILE.TXT'
input.4 = 'QUIT'
"ALLOC F(INPUT) UNIT(VIO) LRECL(80) SPACE(1) TRACKS RECFM(F B)"
"EXECIO * DISKW INPUT (STEM INPUT. FINIS"
"ALLOC F(OUTPUT) UNIT(VIO) LRECL(121) SPACE(1 10) CYLINDERS RECFM(V B)"
"FTP" hostname "(EXIT"
"EXECIO * DISKR OUTPUT (STEM OUTPUT. FINIS"
do i=1 to output.0
parse var output.i msgid dirline
if msgid = 'EZA2284I' then
say dirline
end
"FREE F(INPUT OUTPUT)"
Thanks and Regards,
Gangireddy Siva Pratap Reddy
Rob
In a message dated 8/7/2008 9:34:00 A.M. US Mountain Standard Time,
sivapratapred...@EDS.COM writes:
Hi,
--------------------------------------------------------
**************Looking for a car that's sporty, fun and fits in your budget?
Read reviews on AOL Autos.
(http://autos.aol.com/cars-BMW-128-2008/expert-review?ncid=aolaut00050000000017 )
I have run into a situation that happens periodically where the dataset
gets deleted from the DASD but the catalog entry does not get cleaned
up. I can use a TSO DELETE to delete a cataloged dataset but I get the
following error messages when only the catalog entry exists:
IKJ56232I DATA SET TEST.FILE NOT ON VOLUME AS INDICATED IN THE CATALOG
OR VOL PARAMETER
IDC0551I ** ENTRY TEST.FILE NOT DELETED
IDC0014I LASTCC=8
Thanks anyway!
-----Original Message-----
From: Mike Holder
Sent: Friday, August 15, 2008 10:14 AM
To: 'TSO REXX Discussion List'
Subject: Clean up catalog entry?
Within a REXX, is there a way to clean up a catalog entry that does not
have a dataset?
I have run into a situation that happens periodically where the dataset
gets deleted from the DASD but the catalog entry does not get cleaned
up. I can use a TSO DELETE to delete a cataloged dataset but I get the
following error messages when only the catalog entry exists:
IKJ56232I DATA SET TEST.FILE NOT ON VOLUME AS INDICATED IN THE CATALOG
OR VOL PARAMETER IDC0551I ** ENTRY TEST.FILE NOT DELETED IDC0014I
LASTCC=8
----------------------------------------------------------------------