IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Separating data from low-values/high-values


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gch77

New User


Joined: 16 Mar 2009
Posts: 13
Location: Chennai

PostPosted: Mon Sep 20, 2010 11:09 am
Reply with quote

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
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon Sep 20, 2010 12:59 pm
Reply with quote

what about ?

Code:
INSPECT ws-var1       REPLACING ALL LOW-VALUES BY SPACES   


???
Back to top
View user's profile Send private message
gch77

New User


Joined: 16 Mar 2009
Posts: 13
Location: Chennai

PostPosted: Mon Sep 20, 2010 2:24 pm
Reply with quote

Dint think i could use a simple inspect for this before..Thanks..It worked..
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top