Creating flat file with packeddecimal columns

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
Mohammad_Danish
Participant
Posts: 4
Joined: Thu Sep 08, 2011 10:02 am
Location: Hyderabad

Creating flat file with packeddecimal columns

Post by Mohammad_Danish »

I am trying to convert columns with double as datatype into Packed Decimal. Please provide me any pointers on how to accomplish this task using a parallel job and what datatype to use for these type of columns so that it can be directly picked up be an FTP program and send to mainframe GDG file?
Regards,
Danish
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Packed Decimal is a decimal, so you should convert it to a decimal type before you send it to an output file. Have you looked at the options available for a decimal field in the metadata of a sequential file stage?

A simple search for "packed decimal" in the <a href="http://publib.boulder.ibm.com/infocente ... nformation Server 8.5 Information Center</a> pointed to <a href="http://publib.boulder.ibm.com/infocente ... html">this documentation</a>.

Also, consider using the Complex Flat File stage to create your output file. By default, it will create an EBCDIC/Mainframe compatible layout from your metadata.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply