LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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. possible solution: 1) I know LIBNAME xxx Teradata ... : Can I use a similar way to set a library to Mainframe and locally use FILEEXIST() function?

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.

Tom


Back to: Top of message | Previous page | Main SAS-L page