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


0 comments: