Neeed help in converting Packed decimals

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
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Neeed help in converting Packed decimals

Post by jojipjohn »

In my projects I am getting source files from Mainframe system in packed format. I am converting this using the tranformation "DataTypePicComp3()",but we are not getting correct values after conversion. Could anyone help me in this. Is there any other transformation for this.

Thanks for any help
Joji John
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If you were give the cobol layout, use Complex Flat File. It is worth to build a Cobol layout if not given.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

We are not given the the cobol layout.. we asked for the copy book but we will not get this......

Could you please tell me how to create a cobol layout... I read through the pdf for CFF but could not get a head and tail how to make the layout....
Joji John
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

Post by madhukar »

If you dont have cobol layouts, then how you are reading the source files.
dlkkrao
Participant
Posts: 37
Joined: Wed Apr 20, 2005 4:26 am
Location: mumbai-india
Contact:

Post by dlkkrao »

Hi,

If you are using Sequential File as source, Then do the following steps.

Step1: Go to Format tab
Step2: Go to Type defaults
Step3: Go to Decimal
Step4: Select Packed=no(overpunch)
Step5: Select Sign position as trailing or leading depending upon ur requirement.

It converts the overpunch characters to decimal values.



Thanks
KKRao
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

In the sequetial file stage I could not find the type defaults in the format tab.

Could you please explain this to me.
Joji John
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

jojipjohn wrote:In the sequetial file stage I could not find the type defaults in the format tab.

Could you please explain this to me.
Are you working in server or parallel jobs?

Type Defaults is not available in server jobs. It is available in parallel jobs. Your job type is server but you have posted in parallel forum. :?
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

sorry I will post this in server jobs
Joji John
Post Reply