i am creating a file by re-directing the output of UNIX echo/print command. the command goes thr' (Meaning there is no error after the command is executed) but no file is getting cerated. i would very much appreciate any help on this is.
sample code like
Code: Select all
UNIX_COMMAND='echo "':FILE_TERMINATOR:'">':OUTPUTDIR:'filename.head'
Call DSExecute('UNIX', UNIX_COMMAND, Output, SystemReturnCode)
If SystemReturnCode <> 0 Then
* Fatal Error - No Return
Call DSLogFatal("Job Failed- MyJobName ":Output, "JobControl")
Abort
return
End
Note: Is there any way of Adding an header and a footer to a file other than using WriteSeq/WriteSeqF routines.
[/code]