Showing posts with label DS routine to open Text file. Show all posts
Showing posts with label DS routine to open Text file. Show all posts

Monday, June 30, 2008


PREVIOUS




2.8. Datastage routine to open a text file with error catching


Note! work dir and file1 are parameters passed to the routine.

* open file1

OPENSEQ work_dir : '\' : file1 TO H.FILE1 THEN

CALL DSLogInfo("******************** File " : file1 : " opened successfully", "JobControl")

END ELSE

CALL DSLogInfo("Unable to open file", "JobControl")

ABORT

END



NEXT