Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find the value equivalent for comp

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
knarayan

New User


Joined: 25 Nov 2008
Posts: 9
Location: providence, ri

PostPosted: Wed Feb 18, 2009 12:48 am    Post subject: Find the value equivalent for comp
Reply with quote

Hi
I have this code in one of the programs
05 ONE-SEVEN-TWO PIC S9(04) COMP VALUE +172.
05 FILLER REDEFINES ONE-SEVEN-TWO.
10 FILLER PIC X.
10 C-172 PIC X.

and there is code in the procedure division where it is as follows

INSPECT WS-LINE REPLACING ALL C-172 BY SPACE

Would anyone be able to help me as to what c-172 stands for or how I could find it out

thanks in advance
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Feb 18, 2009 12:55 am    Post subject:
Reply with quote

The comp image of +172 is a x'00AC', so C-172 is a hex AC......
Back to top
View user's profile Send private message
knarayan

New User


Joined: 25 Nov 2008
Posts: 9
Location: providence, ri

PostPosted: Wed Feb 18, 2009 12:57 am    Post subject:
Reply with quote

thanks
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 COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us