View previous topic :: View next topic
|
Author |
Message |
gch77
New User
Joined: 16 Mar 2009 Posts: 13 Location: Chennai
|
|
|
|
hi,
Is there any method in cobol to split the data part(not low-values) from the variable which has low-value as well.
eg) ws-var1 PIC X(15) has 'MAINFRAMES.....' last 5 ---> low-values
ws-var2 PIC X(15) has 'MAINFRAMES ' last 5---> spaces
Here, i need the data part 'MAINFRAMES' alone separtely to compare these two variables.
I tried useing UNSTRING but that becoms complex.Is there any easier way?
Pls advise. Let me know if any details needed. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
what about ?
Code: |
INSPECT ws-var1 REPLACING ALL LOW-VALUES BY SPACES |
??? |
|
Back to top |
|
|
gch77
New User
Joined: 16 Mar 2009 Posts: 13 Location: Chennai
|
|
|
|
Dint think i could use a simple inspect for this before..Thanks..It worked.. |
|
Back to top |
|
|
|