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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 1 Tue Jul 25, 2017 12:12 am
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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