Hi Gems !
I have a Variable block file.It is a tape file with LRECL=23472(with 4 bytes RDW) and Blocksize=23476.
I have to edit this file to replace column positions 333-336 with numberic value 9999 and then copy it into an output file.
I am trying the following OUTREC statement with SYNCSORT(SORT) utility.
SORT FIELDS=COPY
OUTREC FIELDS=(1,332,333:c'9999',337)
I am not sure whether this is the correct way to code OUTREC statment but it is not working.
The output file is coded with following attributes
DCB=(RECFM=VB,LRECL=23472,BLKSIZE=23476)
which are same as the input file
I am getting the following error
WER108I SORTIN : RECFM=VB ; LRECL= 23472; BLKSIZE= 23476
WER237I OUTREC RECORD LENGTH = 23468
WER110I SORTOUT : RECFM=VB ; LRECL= 23472; BLKSIZE= 23476
WER244A OUTREC - SHORT RECORD
Please suggest me how to code OUTREC to accomplish my objective.
Thanks,
Idiot
I have a Variable block file.It is a tape file with LRECL=23472(with 4 bytes RDW) and Blocksize=23476.
I have to edit this file to replace column positions 333-336 with numberic value 9999 and then copy it into an output file.
I am trying the following OUTREC statement with SYNCSORT(SORT) utility.
SORT FIELDS=COPY
OUTREC FIELDS=(1,332,333:c'9999',337)
I am not sure whether this is the correct way to code OUTREC statment but it is not working.
The output file is coded with following attributes
DCB=(RECFM=VB,LRECL=23472,BLKSIZE=23476)
which are same as the input file
I am getting the following error
WER108I SORTIN : RECFM=VB ; LRECL= 23472; BLKSIZE= 23476
WER237I OUTREC RECORD LENGTH = 23468
WER110I SORTOUT : RECFM=VB ; LRECL= 23472; BLKSIZE= 23476
WER244A OUTREC - SHORT RECORD
Please suggest me how to code OUTREC to accomplish my objective.
Thanks,
Idiot