oracle sequence resued for processing error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
efxuser
Premium Member
Premium Member
Posts: 50
Joined: Tue Jun 24, 2008 9:00 am

oracle sequence resued for processing error

Post by efxuser »

I am trying to have a sequence.I am write the maximum sequence number from oracle in a sequenctial file.
I am using a execute command to cat this file.this is the message in th elog.
Seq_preapp..JobControl (@Execute_Command_6): Executed: cat /home/cvid/max_seq.txt
Reply=0
Output from command ====>
" 000000000000100."


Now when I try to pass it as a job parameter to a paraell job I am getting the Seq_preapp..JobControl (@Job_Activity_0): Controller problem: Error calling DSSetParam(SEQ_MAX), code=-4
[ParamValue/Limitvalue is not appropriate].

I searched th eforums and I tried various combinations of convert and field but no avail. Trim(Convert(char(254),"",Execute_Command_6.$CommandOutput))

Trim(Field(Execute_Command_6.$CommandOutput,@FM,1))

Any clues please?
EFX
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

When you stored seq number in the sequential file use data type as BigInt instead of decimal.
efxuser
Premium Member
Premium Member
Posts: 50
Joined: Tue Jun 24, 2008 9:00 am

Post by efxuser »

I am using numeric
EFX
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

Try with bigint and let us know.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

''''''
Last edited by girija on Thu Mar 05, 2009 12:30 pm, edited 1 time in total.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

According to your output from command it is like "000000100.". Set SeqFile--->Format : Quote as none.
efxuser
Premium Member
Premium Member
Posts: 50
Joined: Tue Jun 24, 2008 9:00 am

Post by efxuser »

Thanks girija very much for your response.
I did both changing datatype to bigint and put quote = none.
now the job works.

appreiate your help.
EFX
Post Reply