Variable Length Mainframe Files on server

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

One approach would be to pre-process the downloaded file to unpack the packed fields and thereby to produce a second file, which can then be processed.
DataStage can - in a separate job - do the unpacking. For example, read the entire row as a single column, isolate the various actual columns using substring or other techniques, apply appropriate Transforms (there are several in the sdk) or functions (mainly Oconv or Iconv) to the packed fields to unpack them. Run the resultant rows into a Sequential File stage to get a "regular" text file.


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Post Reply