Date: Thu, 3 Jul 2008 10:37:50 -0400
Reply-To: SUBSCRIBE SAS-L Tom Smith <tomquin99@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SUBSCRIBE SAS-L Tom Smith <tomquin99@GMAIL.COM>
Subject: How to check a file exist on Mainframe from UNIX
I am using UNIX and want to check if a file exist on Mainframe.
1) I know LIBNAME xxx Teradata ... :
Can I use a similar way to set a library to Mainframe and locally use
2) filename dir ftp '' cd="mainframedir" ls="myfile" ... :
Is this ls='myfile' correct? and how to check the return code to see if
the file is there.
3) SIGNON and Rsubmit:
in rsubmit I can use a library and rc=FILEEXIST() function. But can I
use this rc directly on local Unix? or I need to send its value from
Mainframe back to Unix? How?
Thanks in advance for any help.