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
 

 

Moving S9(10)V99 COMP-3 to ALPHANUMERIC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Mon Jul 28, 2008 3:25 pm    Post subject: Moving S9(10)V99 COMP-3 to ALPHANUMERIC
Reply with quote

My Objective is to move the amount which comes by default in
S9(10)V99 COMP-3 to the Alphanumeric X(40) record length.

If I move the variable directly, the compilation fails saying that the compatibility rules was not followed.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jul 28, 2008 3:51 pm    Post subject: Re: MOVING S9(10)V99 COMP-3 TO ALPHANUMERIC
Reply with quote

Hi,
Quote:
My Objective is the move the amount which comes by default in S9(10)V99 COMP-3 to the Alphanumeric X(40) record length.

Please search the forum, these things has been discussed-

http://www.ibmmainframes.com/viewtopic.php?t=20241&highlight=comp3
http://www.ibmmainframes.com/viewtopic.php?t=19621&highlight=comp3
http://www.ibmmainframes.com/viewtopic.php?t=23084&highlight=comp3

Quote:
If i move the variable directly, the compilation fails saying that the compatibility rules was not followed.

Click on this text, this link shows valid and invalid elementary moves. This link is inside the COBOL Language Reference linked to via the "Manuals" link at the top of the web page.
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Mon Jul 28, 2008 5:36 pm    Post subject:
Reply with quote

THANKS FOR THE LINK ANUJ....

REGARDS,
XAVIER
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jul 28, 2008 5:40 pm    Post subject:
Reply with quote

Hi,

You are welcome XAVIER, you should learn not to use CAPS as they are symbol of shouting.

You should also learn how to search the forum for already discussed topics that way things get resolved little earlier..Good Luck.. icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 28, 2008 8:56 pm    Post subject:
Reply with quote

Hello,

Quote:
My Objective is to move the amount which comes by default in
S9(10)V99 COMP-3 to the Alphanumeric X(40) record length.
Why would you want to do this?

Almost anything is "do-able" if some effort is spent, but how would a 40-byte numeric value be used? What about the implied decimal point?

If you explain what you need to accomplish, someone may have a suggestion.
Back to top
View user's profile Send private message
sudhakar84

New User


Joined: 20 Jun 2008
Posts: 21
Location: chennai

PostPosted: Tue Jul 29, 2008 11:13 am    Post subject: Reply to: Moving S9(10)V99 COMP-3 to ALPHANUMERIC
Reply with quote

We cant move the variable of type S9(10)V99 COMP-3 to ALPHANUMERIC directly

Plz declare a intermediate variable of type +9(10).99 and move it to the alphanumeric.. It works.
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
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Moving a PD to PD spoorni DFSORT/ICETOOL 8 Fri Oct 07, 2016 9:52 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm


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