Page 1 of 1

Reading Variable Block, MVS datasets.

Posted: Fri Nov 10, 2006 8:25 am
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..

Posted: Fri Nov 10, 2006 8:48 am
by Krazykoolrohit
read the largest record length as CHAR instead of varchar and then branch of your records.

let me know if it helps

Posted: Fri Nov 10, 2006 1:28 pm
by srikanthd1978
..already tried that..does not help..