IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to convert PIC X(13) to PIC S9(11)V99 USAGE COMP-3


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top