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
 
moving alphanumeric to numeric host variabel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: moving alphanumeric to numeric host variabel
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    Post subject: Re: moving alphanumeric to numeric host variabel
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: 1252
Location: Israel

PostPosted: Wed Sep 20, 2006 1:01 pm    Post subject:
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    Post subject:
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    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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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