file open using ZFile!

General discussion on the JZOS batch launcher and toolkit
Post Reply
Ashirvad Babu
Posts: 11
Joined: Sat May 20, 2006 2:35 am
Location: Chennai, India
Contact:

file open using ZFile!

Post by Ashirvad Babu »

Hi List,
I'm trying to open a MVS PS (Physical Sequential) dataset in read/write mode using com.dovetail.jzos.ZFile

inZFile = ZFile.fopen("DD:CFILE","w+,type=record");

When i compile, i get these erros..

1.ZFileRead.java:27: fopen(java.lang.String,java.lang.String) has private access in com.dovetail.jzos.ZFile
inZFile = ZFile.fopen("DD:CFILE","w+,type=record");
2. ZFileRead.java:27: incompatible types
found : long
required: com.dovetail.jzos.ZFile
inZFile = ZFile.fopen("DD:CFILE","w+,type=record");

Is there any handle or wrapper class that can be used to access 'fopen' private method of ZFile class?? Can anybody send an eg piece of code, to open MVS Physical Sequential data set using ZFile.

Please help!
Ashirvad Babu
Tata Consultancy Services Limited
Mailto: ashirvad.babu@tcs.com
Website: http://www.tcs.com
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Instead of:

inZFile = ZFile.fopen("DD:CFILE","w+,type=record");

You use:

inZFile = new ZFile("DD:CFILE","w+,type=record");
Post Reply