EDIT does not require that that dataset be numbered. Of course, without line
numbers you have to make more use of the DOWN and FIND subcommands, but it's
still a piece of cake.
TOP
DOWN 7
CHANGE * 1 /foo/bar/
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of
Elardus Engelbrecht <[email protected]>
Sent: Thursday, March 28, 2019 3:51 AM
To: [email protected]
Subject: Batch edit of large dataset
Hi to all,
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.
Sounds easy? Interactively with TSO yes, but they want it to be done in a batch
job.
Something like c '???' '!!!' which can be easily done interactively.
I have a look at the different utilities. One utility I could find useful is
the EDIT and CHANGE commands running under IKJEFT.
Unfortunately those IKJEFT01 commands require that the dataset lines need to be
numbered.
I tried it out:
READY
EDIT '??.TEST' OLD TEXT ASIS NONUM
EDIT
CHANGE 1 2000 'ONE' 'TWO'
IKJ52502I DATA SET NOT LINE NUMBERED
EDIT
END
The IKJ52502I is not what I want. Is there a batch utility where I can edit a
line in large dataset?
I am very sure I am overlooking something obvious.
Many thanks in advance.
Groete / Greetings
Elardus Engelbrecht
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN