Sample for zfile to append to file

General discussion on the JZOS batch launcher and toolkit
Post Reply
usaajrm
Posts: 87
Joined: Tue Feb 06, 2007 3:46 pm

Sample for zfile to append to file

Post by usaajrm »

We are looking for a sample program that uses zfile to append to an mvs pds member. We are able to do it, but are seeing alot of extra allocations. We are sure it is because we create a new instance of zfile for the same file for each write. This happens because we created a class called write to member that handles the append. So, each time we call writetomember is does the new zfile. We are not sure how to hold or pass a zfile reference. any insight would help.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

I'm not sure that I understand completely your issues.

Is the problem that you are allocating and opening PDS members for appending too often (for every record?)
Post Reply