I guess, I need to be more clear on the requirement:
1) I have 1 input file of 30 bytes
2) I need to convert the first 20 bytes to ASCII
3) The rest 10 Bytes should pass on as it is.
4) The output file will be 30 bytes long, with the first 20 bytes as converted ASCII and the rest 10 as they were in Input.
Here in the code above:
I am first trying to split the I/P file into 2 files, convert the first file and then merge them back to get the output record.
Any help would be appretiated. _________________ Regards,
Programmer
I can't figure out what you're trying to do in your first post or what it has to do with the requirements in your second post, but the errors in the two statements are as follows:
1) OUTREC=(20X,1,10,30:X,SEQNUM,8,ZD)
20X,1,10 gives a length of 30 bytes, so you can't use 30: because that would overlap the previous field. The next byte is 31, not 30, so you need 31:
2) SUM FIELDS=(21,10,CH)
SUM deals with numeric formats. CH is NOT a numeric format so it can't be used with SUM. You can use ZD.
However, I don't think this job is really what you want given the requirements in your second post. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum