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

is thr a way to move alphanumeric to comp-3


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tarunbiz

New User


Joined: 10 Apr 2006
Posts: 4

PostPosted: Tue Jun 20, 2006 3:24 pm
Reply with quote

hi
I have two working storage variable.

Ws-alpha PIC X(8).
Ws-comp PIC S9(8)V99 comp-3.

The value stored in Ws-alpha is 123.45. I need to move Ws-alpha to Ws-comp. How do I proceed ?

Tarun
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Tue Jun 20, 2006 5:13 pm
Reply with quote

You can redefine Ws-alpha into numeric type and move it to Ws-alpha if it is numeric.
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 COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts How to move DB2 Installation HLQ DB2 4
Search our Forums:

Back to Top