I would probably use the DIR function.

IF DIR(<filename>) THEN PRINT "File exists"

/Magnus Högberg

-----Ursprungligt meddelande-----
Från: [email protected] 
[mailto:[email protected]] För Kebbon Irwin
Skickat: den 28 juni 2011 18:54
Till: [email protected]
Ämne: [U2] Verifying file existence


UD 7.1
RHEL Nahant 4
I am looking for an elegant way to verify a file in a remote directory has been 
created.  Because it is a binary file and could be pretty big, I thought 
OPENing or OPENSEQing it might not be best.  I briefly looked at "stat" within 
a PCPERFORM but found the @SYSTEM.RETURN.CODE returned 0 whether the file was 
there or not.

Any other ideas?
Cheers,
Kebbon Irwin
                                          
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to