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
 

 

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 How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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