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
 
How to convert PIC X(13) to PIC S9(11)V99 USAGE COMP-3

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

New User


Joined: 08 Jul 2006
Posts: 4

PostPosted: Sat Jul 08, 2006 5:10 pm    Post subject: How to convert PIC X(13) to PIC S9(11)V99 USAGE COMP-3
Reply with quote

Hi,

I have a doubt that has to be cleared. I have a amount field that is PIC X(13). I have to convert this to a PIC S9(11)V99 USAGE COMP-3 variable. After Converting this to COMP-3 I need to use another variable that will accumalate this COMP-3 variable.

Please do help me.
Back to top
View user's profile Send private message

a1javeed

New User


Joined: 10 Dec 2005
Posts: 20
Location: KUWAIT

PostPosted: Sat Jul 08, 2006 8:39 pm    Post subject: Re: How to convert PIC X(13) to PIC S9(11)V99 USAGE COMP-3
Reply with quote

hello
u can redefine the amount field as follows

01 amount pic x(13).
01 amt-r redefines amount 9(11)v99.
01 amt-c3 pic s9(11)v99 comp-3.
then
move amt-r to the amt-c3

hope this will help u...

regards
Javeed
Back to top
View user's profile Send private message
sandeshgitte

New User


Joined: 08 Jul 2006
Posts: 4

PostPosted: Mon Jul 10, 2006 9:02 pm    Post subject: Thank You Mr Javeed
Reply with quote

Thanks for the solution Mr Javeed. It worked. Hopefully you wont mind if I have more questions for you in the future.

Have a nice day
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 Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8: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

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