date

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Try checking Output<1> instead of just Output and see if that fixes the problem. It should unless something else is going on.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The Output variable contains an array. You just want the first line, which would be Output<1>.

Rather than execute the shell command, why not use DS BASIC function DATE() to the current system clock call, or @DATE to get the date when your process was started? Consider TIMEDATE() as well.

So, try Now = OCONV(@DATE, "D-YMD"). Search the forum for discussions.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply