Write file with EBCDIC format

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
prasad v
Participant
Posts: 174
Joined: Mon Mar 30, 2009 2:18 am

Write file with EBCDIC format

Post by prasad v »

Hi

I need to write a flat file with EBCDIC format. Can any body tell me how to do this?
AGStafford
Premium Member
Premium Member
Posts: 30
Joined: Thu Jan 16, 2003 2:51 pm

Post by AGStafford »

Have you looked into the Complex Flat File stage?
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

In your file stage, the link properties Format tab (whether Input or Output): clear all attributes, right click on "Record level", open the "Format as" sub-menu and click on "Mainframe (COBOL)". The common default format properties for an EBCDIC flat file will be filled in. If your file is not intended for immediate transfer to a mainframe platform, you might have to adjust some of the attibutes. Record type=implicit means there is no end-of-line character provided or expected. If the next process to read the file is DataStage, all you have to do is use the default properties shown above.

Rule-of-thumb: A mainframe "flat" file is continuous data. Formatting is carried in a catalog which acts similarly to schema settings for DS datasets. Your table definition is your control point for the data.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Post Reply