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

Moving S9(10)V99 COMP-3 to ALPHANUMERIC


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Mon Jul 28, 2008 3:51 pm
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-

www.ibmmainframes.com/viewtopic.php?t=20241&highlight=comp3
www.ibmmainframes.com/viewtopic.php?t=19621&highlight=comp3
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
Reply with quote

THANKS FOR THE LINK ANUJ....

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

Superior Member


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

PostPosted: Mon Jul 28, 2008 5:40 pm
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

Moderator Emeritus


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

PostPosted: Mon Jul 28, 2008 8:56 pm
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
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 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 Moving Or setting POINTER to another ... COBOL Programming 2
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 Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
Search our Forums:

Back to Top