Datstage solutions, knowledge base, FAQ and best practices



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


Back to the list of all Datastage FAQ topics