> I've got a requirement where a single line in large dataset
> (RECFM=VB or FB and LRECL=<larger than 2048>) needs to be edited/
> changed in batch. Changed dataset is then to be used in next job steps.
> I have a look at the different utilities. One utility I could find
> useful is the EDIT and CHANGE commands running under IKJEFT.
Elardus Engelbrecht,
You skipped over the most important Utility DFSORT. It can find and REPLACE
one or more strings. Here is an example.
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=Your Input VB file with LRECL>2048
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC FINDREP=(ENDPOS=2004,
INOUT=(C'ONE',C'TWO',
C'FOUR',C'FIVE'))
//*
Note : For FB fies the end position would be 2000 ( No addition of the
RDW)
Further if you have any questions please let me know
Thanks,
Kolusu
DFSORT Development
IBM Corporation
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN