Uncataloged Dataset & ZFile

General discussion on the JZOS batch launcher and toolkit
Post Reply
Yellowcake
Posts: 8
Joined: Sat Aug 05, 2006 4:49 pm

Uncataloged Dataset & ZFile

Post by Yellowcake »

Is there a way to open an uncataloged dataset (using a VOLSER) without using a DD card?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You should be able to dynamically allocate the dataset using ZFile.bpxwdyn and then open the dynamically allocated DD using ZFile.
Yellowcake
Posts: 8
Joined: Sat Aug 05, 2006 4:49 pm

Post by Yellowcake »

I was under the impression that BPXWDYN was used only to "allocate" a new dynamic dataset. I want to open an already exsisting one.

Could you give me a brief example of accomplishing this task?
Yellowcake
Posts: 8
Joined: Sat Aug 05, 2006 4:49 pm

Post by Yellowcake »

I will answer my own question:

Code: Select all

ZFile.bpxwdyn("Alloc fi(TESTDD) da(HLQ.TESTPDS(MEMBER)) vol(VOLSER) shr");
ZFile inf = new ZFile("//DD:TESTDD", "rb,type=record,noseek");
Post Reply