View previous topic :: View next topic
|
Author |
Message |
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
I have a pds with 100 member. I have to modify all the member in the pds. I need to replace 'load data'(from 1byte to 9 byte) string to 'LOAD DATA RESUME YES LOG NO NOCOPYPEND" (from 1 byte to 72).
Input
LOAD DATA
INTO TABLE
"XXXXXT".
Output
'LOAD DATA RESUME YES LOG NO NOCOPYPEND
INTO TABLE
"XXXXXT". |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
doing it with sort might be pretty boring ...
DFSORT deal only with PS and VSAM datasets
to do what You want with dfsort You will have to have a step for each member!
find out from Your support if You have FILEMANAGER or FILEAID
they provide all what is needed for such a task
as an alternative You might try my chgall/masschg script
www.ibmmainframes.com/viewtopic.php?t=60794&highlight=chgall
when doing automated MASS changes, whatever the tool used,
it is a good idea to always backup the dataset before the main event |
|
Back to top |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
Thanks enrico. I am trying in fileaid only.. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
vicky10001
DFSORT can only handle 1 member at a time. But you can use FILE Manager to perform the update like shown below
Code: |
//STEP0100 EXEC PGM=FILEMGR
//SYSPRINT DD SYSOUT=*
//PDS1 DD DISP=SHR,DSN=Your Input PDS to be updated
//SYSIN DD *
$$FILEM FCH INPUT=PDS1
C 'LOAD DATA' 'LOAD DATA RESUME YES LOG NO NOCOPYPEND'
//* |
|
|
Back to top |
|
|
|