Search found 229 matches

by pnchowdary
Mon Jul 18, 2005 12:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error while calling a job from Job Control Code
Replies: 14
Views: 7574

Hi Titto, Make sure you have attached to your job using DSAttachJob function shown below. Alternatively if you are referring to the current job, you can use the job handle as DSJ.ME JobHandle = DSAttachJob (JobName, ErrorMode) Then you need to use this job handle in the DSSetParam function to set th...
by pnchowdary
Mon Jul 18, 2005 12:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error due to different Level Number in transformer
Replies: 6
Views: 2422

Hi Kumar,

What is the exact error you are getting now ?. What do you expect the value of the header CISSFTS_HEADER to be ?

Thanks,
Naveen
by pnchowdary
Mon Jul 18, 2005 9:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error due to different Level Number in transformer
Replies: 6
Views: 2422

Hi Kumar, How are you reading this mainframe file into datastage?. I assume you are using an CFF stage. While intially reading the file into datastage, you need to read all the information ( Header + Detail). In the subsequent stages, you can use a transformer to pass whatever information you need i...
by pnchowdary
Mon Jul 18, 2005 9:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to assign values to parameters in jobs
Replies: 7
Views: 2320

Hi Kumar,

A job parameter for a job can not be set within the same job. If you want to pass the stage variables to the next stage, you can write it to a flat file and read it whenever you need it.

Thanks,
Naveen
by pnchowdary
Mon Jul 18, 2005 9:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Import error
Replies: 5
Views: 1523

You will come across the above problem, when someone ran the job with the same name and maybe they deleted the job and left the RT files hanging there. Since, the job was ran with a different id, it may not let you delete those files. Check and see which id created the RT files and whether you can d...
by pnchowdary
Fri Jul 15, 2005 4:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Falt file and email if row>1
Replies: 12
Views: 6064

cool :)
by pnchowdary
Fri Jul 15, 2005 4:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Falt file and email if row>1
Replies: 12
Views: 6064

What is the exact error you are getting ?
by pnchowdary
Fri Jul 15, 2005 3:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Falt file and email if row>1
Replies: 12
Views: 6064

Hi vinay, Yes, you need to give the full file path in the below command like wc -l /etl/ascential/datastage/file1.txt The output from the above command will be something like this 19 /etl/ascential/datastage/file1.txt You need to extract the numerical part of the output string, which will give you t...
by pnchowdary
Fri Jul 15, 2005 3:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Falt file and email if row>1
Replies: 12
Views: 6064

Hi Vinay, You need to create a job sequencer and follow the below steps to achieve your requirement. 1) Have an ExecuteCommand stage in the sequencer after your job runs and creates the reject file. 2) Call a shell script in the unix, in which you can use wc -l <filename> to the get the no of line i...
by pnchowdary
Fri Jul 15, 2005 1:05 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hexadecimal to Char
Replies: 6
Views: 3744

Hi Anil,

Is your input column a COMP field or a regular field?
by pnchowdary
Fri Jul 15, 2005 12:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hexadecimal to Char
Replies: 6
Views: 3744

Hi Anil,

Convert from EBCDIC to ASCII using the Ascii( ) function. That should take care of your problem.

Thanks,
Naveen
by pnchowdary
Fri Jul 15, 2005 9:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date format conversion
Replies: 8
Views: 3037

Hi Amit,

You can use the following logic

Code: Select all

Ans = Arg1[4,2]:"/":Arg1[1,2]:"/":Arg1[7,4]
where Arg1 is the date in dd/mm/yyyy format

I always use this logic in my routine to convert date to US format (mm/dd/yyyy) and It works like a charm.

Thanks,
Naveen
by pnchowdary
Fri Jul 15, 2005 9:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Zoned Decimal Fields
Replies: 9
Views: 4881

Like ArndW suggested, you must do an EBCDIC to ASCII conversion using Ascii( ) function, before attempting to even view the data. If you have a packed field, other than EBCDIC to ASCII conversion, you have to make sure that even the storage length is correct, as the storage length changes when you u...
by pnchowdary
Fri Jul 15, 2005 8:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error due to different Level Number in transformer
Replies: 6
Views: 2422

Hi Kumar, From my experience with mainframe files. I believe the level number of the header record should always be less than the detail records it contains. level no col name 10 CISSFTS_HEADER 05 xxxxx 05 yyyyy 10 zzzzzz I think the level numbers are messed up in your above file. The corrected leve...
by pnchowdary
Thu Jul 14, 2005 5:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to fill fields with zeros.
Replies: 4
Views: 1624

Alternatively, you can use

Code: Select all

Str("0",10)
in your transformer derivation section.