DO I = 1 TO LINE.0
IF SUBSTR(LINE.I,98,2) = '##' & (SUBSTR(LINE.I,1,3) = '4RB' | (SUBSTR(LINE.I,1,3) = '001') THEN
LINE.I = OVERLAY('//',LINE.I,98,2)
END
Joined: 02 Dec 2002 Posts: 6 Topics: 1 Location: Nottingham
Posted: Tue Jan 06, 2004 11:33 am Post subject:
Kolusu,
Strangely enough, I checked this board today because I have a very similar requirement to the one described by sasubashri.
This is how I understood sasubashri's problem in pseudo-code:-
Change (98,2) to '//' if
((98,2) EQUALS '##') AND ((1,3) EQUALS '001' OR (1,3) EQUALS '4RB')
I think that your solution will change (98,2) without any regard to its original value. I doubt whether there is a SORT solution to the problem as I understood it but, if there is, I'd be very grateful.
Sorry if I've completely misunderstood the original problem, by the way.
Last edited by Unspec on Tue Jan 06, 2004 11:52 am; edited 1 time in total
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Jan 06, 2004 11:59 am Post subject:
Frank,
Thanks for pointing out the error. I guess I have interpreted the question wrong. I assumed that pos 98-99 will always have ## for the records whose first 3 bytes is 001 or 4RB. I apologize for the bad assumption
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum