Reading Variable Block, MVS datasets.
Posted: Fri Nov 10, 2006 8:25 am
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 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..