Search found 20 matches

by jzajde1
Thu Jun 25, 2015 1:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Negative Packed Decimals
Replies: 4
Views: 2884

Hi Franklin, We figured out the issue. Instead of sending file over email we SFTP'ed the file to the mainframe server without a delimiter in the CFF stage. The mainframe program was able to recognize the negative and positive fields. Issue = resolved. Thanks for your help! Always appreciated. Jared
by jzajde1
Wed Jun 24, 2015 1:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Negative Packed Decimals
Replies: 4
Views: 2884

Franklin -

You are correct...

The 0D is coming over in LineFeed (LF). When I view the file in notepad++, there is a break in record.
Is there a way to get rid of this? Or no?

Please advise!

Thank you.
by jzajde1
Thu Jun 18, 2015 12:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Negative Packed Decimals
Replies: 4
Views: 2884

Negative Packed Decimals

Hello All - I am having an issue with some negative packed decimal fields in the CFF. Job Design: Seq. File -> Transformer -> Sort -> CFF The CFF Stage is packing the data. I have two amount fields within my source. Both of which are [15,2] - PIC S9(13)V9(2) Comp-3. A source will read as followed -0...
by jzajde1
Tue Jun 16, 2015 2:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

Thank you for the advice! I will be sure to follow it in the future designs.

Regards,
Jared
by jzajde1
Tue Jun 16, 2015 9:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

Craig -

Got it!

In the transformer stage I was using Div(Amount,100).
I switched it to (Amount/100) and it worked!

Thanks for your help,

Jared
by jzajde1
Tue Jun 16, 2015 7:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

The field is defined as a decimal across the 2 remaining stages (Sort & CFF). ** I did notice something interesting though. I removed the amount field in the CFF Stage (which is the final stage in the program). Then I put it back into the CFF stage. Once I carried it over from the sort, I notice...
by jzajde1
Tue Jun 16, 2015 6:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

Craig -

I did read this on another thread, and it is working to an extent.

However, it doe not work when there are cents involved.

Ex. 1015.00 should be 10.15
This value shows up as 10.00 once I divide 1015.00 by 100
by jzajde1
Mon Jun 15, 2015 6:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

All - I did some research and found the OCONV conversion. However, when i go to use it in the Transformer Stage it does not work. Shows up as a red error when I leave the derivation box. Ex. OCONV(DOC_AMT,"MD22") The "DOC_AMT" field is a decimal, length 15 scale 2. Please advise,...
by jzajde1
Fri Jun 12, 2015 11:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: CFF stage issue with OCCURS and blank default values
Replies: 6
Views: 4293

In the CFF Stage under 'Record Options' Tab there is a default values column. Enter 0.0 as a default.
by jzajde1
Fri Jun 12, 2015 6:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

Ray - Here are what the column grid fields contain: Level Number = 2 Column Name = Amt Native Type = Decimal Extended = Length= 15 Scale = 2 Nls Map = This is a signed field so the picture clause = PIC S9(13)V9(2) COMP-3. Is there something under the extended attributes section which I should be usi...
by jzajde1
Thu Jun 11, 2015 11:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

ArndW:

The packed output file is being sent to a mainframe program. I have been working with the mainframe team throughout the development. A member of the mainframe team made me aware to this decimal location issue.

From what you said, it sounds like the assumed decimal position is off.
by jzajde1
Thu Jun 11, 2015 8:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Packed Decimal Issue
Replies: 14
Views: 6110

Packed Decimal Issue

Hello - I am having an issue with packed decimals in the CFF Stage. First here is some background on the job design: - Bring fixed length records in via Seq. File Stage - Parse records based on byte order - Sort records - Pack records in the CFF Stage Issue : - The only fields I am having issues wit...
by jzajde1
Wed Jun 10, 2015 3:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Header/Trailer Insert
Replies: 5
Views: 3656

All -

I wrote the header/trailer records to separate files.

Then I wrote a bash script and created a subroutine which 'cat's' all of the files together.

Thanks,

Jared
by jzajde1
Thu Jun 04, 2015 11:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: YYYYMMDD -> YYYYDDD
Replies: 2
Views: 2070

@Chulett -

Worked like a charm! Thanks for your help.

Jared
by jzajde1
Thu Jun 04, 2015 9:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: YYYYMMDD -> YYYYDDD
Replies: 2
Views: 2070

YYYYMMDD -> YYYYDDD

Hello -

I am trying to convert a string(which is a date) YYYYMMDD to YYYYDDD.
The YYYYDDD columns need to remain in a decimal format since this field is going to be packed in the CFF Stage.

Please advise.

Thanks,
Jared