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 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: 25
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
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
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
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am

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