Creating a Fixed Length File

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
johnshot
Charter Member
Charter Member
Posts: 12
Joined: Wed Feb 26, 2003 7:47 pm
Contact:

Creating a Fixed Length File

Post by johnshot »

I'm trying to create a fixed length record, but can't seem to get it to work. I have selected the "Record Length=Fixed" property within the Format tab, all the columns are set to char data types. Any clues???
JMS Data Management, Inc
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

How about giving us a hint, just a little hint, on what isn't working?
johnshot
Charter Member
Charter Member
Posts: 12
Joined: Wed Feb 26, 2003 7:47 pm
Contact:

Post by johnshot »

The job isn't creating a fixed length record. All the data looks correct, but its not padding out the columns to fit the column's definition. I'm looking at the files in UNIX and they look as if I created them as VarChar Columns.
JMS Data Management, Inc
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Have you looked with a binary editor? Or try setting $APT_STRING_PADCHAR to a space.
johnshot
Charter Member
Charter Member
Posts: 12
Joined: Wed Feb 26, 2003 7:47 pm
Contact:

Post by johnshot »

I haven't messed with the environment variables yet... I hoping to avoid that. Its a big pain in our environment. I'll check the binary editor route first.
JMS Data Management, Inc
Post Reply