Reading Variable Block, MVS datasets.

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
srikanthd1978
Charter Member
Charter Member
Posts: 38
Joined: Wed Mar 17, 2004 1:16 am
Location: USA

Reading Variable Block, MVS datasets.

Post by srikanthd1978 »

hi all,

I am having a Variable Block mianframe MVS data file, that i need to read. This data file has three types of records, each record of certain length.

Example:

Record A uses a Copybook X, record B uses Copybook Y and record C uses Copybook Z.

How do i go about reading this type of MVS dataset, either from the server or parallel job.

I have tried using the following approach:

Use a server job and try to read the largest record length as a varchar(length)..and then try to split the record into the three types...

In theory i shld be able to read all the three record types in//but i dont see that happenning..

has anyone ever tried to read a varible block mainframe file containing multiple record types ( without converting to Fixed width up in the mainframe world )and has encountered any issues ??

Thanks..
..i did not invent many things..but i can make them Better..
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

read the largest record length as CHAR instead of varchar and then branch of your records.

let me know if it helps
srikanthd1978
Charter Member
Charter Member
Posts: 38
Joined: Wed Mar 17, 2004 1:16 am
Location: USA

Post by srikanthd1978 »

..already tried that..does not help..
..i did not invent many things..but i can make them Better..
Post Reply