Trying to append to a pds member using todsn

General discussion of the Co:Z Toolkit
Post Reply
usaajrm
Posts: 87
Joined: Tue Feb 06, 2007 3:46 pm

Trying to append to a pds member using todsn

Post by usaajrm »

Trying to write multiple lines to a pds member using todsn. The second attempt fails with the -a option. If i remove the -a it works, but overwrites the first line.
error:
+ printf -- '-NOTE: %s%s%s\n' 'Failed to read ORDERID' 0i3fx jostest-bsa
+ todsn -a '//OSP.BSADV.HJ01234.HJ56799(REQSTAT)'
todsn-client(4741)[E]: todsn(OSP.BSADV.HJ01234.HJ56799(REQSTAT)): Error opening output dataset, rc=103, msg="EDC5057I The open mode
todsn-client(4741)[E]: server exit_code=103
todsn-client(4741)[E]: transmitted byte counts do not match, server sent/received = 0/1, client received/sent = 0/46
usaajrm
Posts: 87
Joined: Tue Feb 06, 2007 3:46 pm

Post by usaajrm »

I was able to append to a flat file. Would like to use a pds member if posssible.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Co:Z uses the IBM C library for file and dataset I/O. It is not possible to append to a PDS member. This is similar to the restriction in JCL that it is not possible to write to a PDS member using DISP=MOD.
Post Reply