View previous topic :: View next topic
|
Author |
Message |
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
Quote: |
With the additional complication you've added, the INSPECT is not the tool to use |
in this case , at the first place itself you shudnt have recommended this ...and btw how does adding a BEFORE clause to your post increase the complication ? i just gave some value addition ...
For finding the location of AC1 and AC2 either you will have to do a perform checking for the exact value or else you have to use INSPECT ... let the OP decide whether he wants performance or simpler code ...
But i would strongly suggest using PERFORM |
|
Back to top |
|
|
GrantP
New User
Joined: 12 Aug 2008 Posts: 8 Location: Johannesburg
|
|
|
|
@ashimer
Apologies for any misunderstanding. "additional complication" comment was directed at OP with regards
Quote: |
iam sorry , forgot to say one thing
that text is 100 bytes total if i do like this then it will replace X till 100 bytes .
From AC2 just i want to replace "X" for 8 bytes. |
|
|
Back to top |
|
|
ssprabhu
New User
Joined: 25 Apr 2005 Posts: 67 Location: pune
|
|
|
|
Thanks all, this also work isn't it ? please suggest how to reduce the 2 inspect stmt as one .
INSPECT DATA1 CONVERTING
"0123456789" TO "XXXXXXXXXX"
AFTER INITIAL "AC1: " BEFORE ", AC2"
INSPECT DATA1 CONVERTING
"0123456789" TO "XXXXXXXXXX" AFTER ", AC2" |
|
Back to top |
|
|
|