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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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