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

moving alphanumeric to numeric host variabel


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

New User


Joined: 23 Mar 2006
Posts: 13

PostPosted: Wed Sep 20, 2006 9:44 am
Reply with quote

Hi, can i directly move a value for a x(4) to a S9(9) comp variable.
If not, what can be the solution to save such values.

I am getting soc7 error while moving directly.
Back to top
View user's profile Send private message
shanthikiran

New User


Joined: 31 May 2005
Posts: 7
Location: India

PostPosted: Wed Sep 20, 2006 11:38 am
Reply with quote

HI

You can't move the Alpha numeric value directly to the any comp variable.So you can declare a variable with the 9(4) in working storage section then move the alpha numeric to this numeric variable which you have declare in working storage section and move the numeric to comp.

Cheers
Shanthi Kiran
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Sep 20, 2006 1:01 pm
Reply with quote

Is it really necessary to ask the same question twice?
Back to top
View user's profile Send private message
arunswap

New User


Joined: 23 Mar 2006
Posts: 13

PostPosted: Thu Sep 21, 2006 4:12 pm
Reply with quote

how do u move pic x(4) to pic s9(4) comp
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts access the last host command CLIST & REXX 2
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts Convert HEX to Numeric DB2 3
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top