View previous topic :: View next topic
|
Author |
Message |
TS70363
New User
Joined: 07 Apr 2010 Posts: 94 Location: Bangalore, India
|
|
|
|
Hi,
Using Syncsort, I am looking to replace '@@' (X'7C') which appears anywhere in my record with '#' (X'7D')
File information:
Record format . . . : VB
Record length . . . : 2040
Code: |
//SYSIN DD *
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=(??,??,CH,EQ,X'7C7C'),OVERLAY=(??:X'7B'))
/*
|
Can anyone suggest the value of ??. or anyother SORT which can help me achieve? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
if You want to substitute two chars with one , You will have to rebuild the record
overlaying one char will simply mess up things |
|
Back to top |
|
|
TS70363
New User
Joined: 07 Apr 2010 Posts: 94 Location: Bangalore, India
|
|
|
|
But I dont know the position at which @@ will occur. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Look at FINDREP in your documentation. Search the forum. |
|
Back to top |
|
|
|