Search found 15603 matches

by ArndW
Tue May 23, 2006 1:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Subract the date with 365 days
Replies: 7
Views: 1494

You can use the DataStage variable @DATE to get the current date in internal numeric form. I don't know what format either your UDT_DATE or "sysdate" is in, so can't comment on why it isn't working. Is the "sysdate" a job parameter?
by ArndW
Tue May 23, 2006 12:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Accessing Server job variable value from sequence job
Replies: 7
Views: 1892

Yes, you can call it from a transform stage. You will not want to execute this for every row, though. Either in a before/after stage call or as a one time call in the initial value of a stage variable, depending upon how you get the value. The call is a function so it needs to be on the assignment s...
by ArndW
Mon May 22, 2006 11:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Accessing Server job variable value from sequence job
Replies: 7
Views: 1892

Unfortunately variables in jobs only exist while the job is running, i.e. they are not persistant. You can use a call to DSSetUserStatus({value}) in the job and then retrieve it in the parent sequence using DSGetJobInfo({JobHandle},DSJ.USERSTATUS)
by ArndW
Mon May 22, 2006 10:20 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: phantom in routine
Replies: 17
Views: 7073

Ascen - say again? The INDEX function will return a 0 if the 1-char len value of the variable "cp" is not found in the string otherwise it will return a value. An condition in DataStage BASIC evaluates to 0 or '' as being the equivalent of false and anything else to be TRUE.
by ArndW
Mon May 22, 2006 7:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: phantom in routine
Replies: 17
Views: 7073

Try doing a global replace of "cp" to "xx" in your manager to see if it really is cp and not perhaps op in your code. You could also change your line to "IF INDEX('ASQMN',cp,1) THEN Ans='' ELSE RETURN('yourtext')"
by ArndW
Mon May 22, 2006 3:54 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: why the datastage may occur running 1 record / second
Replies: 8
Views: 2642

That is not a question that can be answered, it is like asking "why does my car only go 10 Km/H?". There are too many variables. If you run a job that copies from one sequential file to another in DataStage at the same time does it go at 1 row/second? or 50,000 rows/second? Does reading from your Or...
by ArndW
Mon May 22, 2006 2:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Syntax issue using execute and capturing
Replies: 29
Views: 6974

You can look up MATCH(ES) and pattern matching in the BASIC manual, page 6-382 for details.
by ArndW
Fri May 19, 2006 10:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Syntax issue using execute and capturing
Replies: 29
Views: 6974

Try

Code: Select all

Command = "SELECT DS_JOBS WITH  EVAL 'LEN(TRIM(JOBNO))' > 0 SAVING JOBNO TO 10"


And sorry about forgetting the @FM in the DCOUNT command. C'est la vie.
by ArndW
Fri May 19, 2006 10:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problems with mkdbfile
Replies: 3
Views: 1436

The SETFILE command needs a <pathname> and a <VOC Filename> as parameters, in that order. The "mkdbfile" is a UNIX command while the SETFILE is a TCL command.
by ArndW
Fri May 19, 2006 3:49 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Syntax issue using execute and capturing
Replies: 29
Views: 6974

Colin, Command = 'SELECT DS_JOBS SAVING JOBNO TO 10' EXECUTE Command Capturing ScreenIO RETURNING ErrorCode READLIST AllJobNos FROM 10 ELSE AllJobNos = '' JobCount = DCOUNT(AllJobNos) FOR Index = 1 TO JobCount CurrentJobNo = JobNos<Index> NEXT Index Ans = 'Unused' Put this in a test routine ...
by ArndW
Fri May 19, 2006 2:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File gets currupt if edited in vi.
Replies: 4
Views: 1362

The default line termination for DOS files is <cr><lf>, saving it with vi might change that to the unix <lf> character only.
by ArndW
Thu May 18, 2006 6:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get the number of warnings
Replies: 2
Views: 799

You can use the "dsjob -report" to get this information from your UNIX script.
by ArndW
Wed May 17, 2006 6:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Routine
Replies: 7
Views: 1725

Server routines can be called in parallel jobs:

a) in the job Before/After
b) from BASIC transform stages
by ArndW
Wed May 17, 2006 6:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Loading data to a hash file
Replies: 2
Views: 890

Eric, declare that column as VARCHAR in the source and hashed file and it won't strip out the leading zeroes.
by ArndW
Wed May 17, 2006 4:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: UtilityRunJob with job parameter
Replies: 3
Views: 1425

eldonp wrote:UtilityRunJob('#JobToRun#','Project=':Link1.project,0,0)
will not work, since it will not expand the value of the parameter and look for a job name starting and ending with hash marks. Specify the JobToRun with quotes and without hash marks, as per the previous post.