Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Separating data from low-values/high-values

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Separating data from low-values/high-values
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    Post subject: Reply to: Separating data from low-values/high-values
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    Post subject: Separating data from low-values/high-values
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us