|
View previous topic :: View next topic
|
| Author |
Message |
Help-Me-Out
New User
.jpg)
Joined: 09 Dec 2006 Posts: 56 Location: Pune
|
|
|
|
How can we replace the one character which is common in all the members of th PDS but not at the fixed position.
I have return the job following job, but its giving RC=04
//S01TCS EXEC PGM=FILEAID,PARM=TSO
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*,DCB=(LRECL=111,RECFM=FB)
//SYSDUMP DD SYSOUT=*
//DD01 DD DSN=BOY1SP.REPL.SOURCE,DISP=SHR
//SYSIN DD *
££DD01 UPDATEALL MEMBERS=ALL,
EDIT=(2,1,2,C'A')
Can anyone suggest the solution for this. |
|
| Back to top |
|
 |
cpuhawg
Active User

Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
To protect your PDS, I would do the following. Create a 2nd PDS with the same attributes and the 1st PDS. That way, if there is a problem, your original PDS is intact. DD01 is your input PDS. DD01O is your output PDS.
The @ (at sign) represents the character you are searching for.
The # (pound sign) represents the character you are changing it to.
The control cards will cause every member to be copied from the input PDS to the output PDS. It will seach every line of every member. When it locates the common character you are searching for, it will be replaced by the new character.
| Code: |
//FILEAID EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=HLQ.INPUT.PDS,DISP=SHR
//DD01O DD DSN=HLQ.OUTPUT.PDS,DISP=SHR
//SYSIN DD *
$$DD01 COPY MEMBERS=ALL,
REPL=(1,0,C'@',C'#')
|
|
|
| Back to top |
|
 |
Help-Me-Out
New User
.jpg)
Joined: 09 Dec 2006 Posts: 56 Location: Pune
|
|
|
|
Hi,
Got the solution for this . Here is the JCL that might Help someone
000005 //S01TCS EXEC PGM=FILEAID,PARM=TSO
000006 //SYSPRINT DD SYSOUT=*
000007 //SYSLIST DD SYSOUT=*,DCB=(LRECL=111,RECFM=FB)
000008 //SYSDUMP DD SYSOUT=*
000009 //DD01 DD DSN=BOY1SP.REPL.SOURCE,DISP=SHR
000010 //SYSIN DD *
000011 ££DD01 UPDATEALL MEMBERS=ALL,
000012 EDITALL=(0,1,C'A',C'2') |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|