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
 

 

Low values to Comp-3 variable

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

New User


Joined: 03 Mar 2009
Posts: 5
Location: Chennai

PostPosted: Mon Apr 27, 2009 1:33 pm    Post subject: Low values to Comp-3 variable
Reply with quote

Hi,

This is related to on line program. In that

The variable is declared as
B-variable PIC S9(9)V9(6) COMP-3.

Inside of the program, the coding is

Move B-variable to A-variableO

---

A-VariableI is declared as A-VariableI PIC X(16)
A-variableO is declared as A-VariableO PIC Z(9).9(6)

Now the the screen allows the user to enter the values from .10. It wont allow the user to enter below of 0.10. I need to move the lowvalues 0.05 to A-VariableO .

Please suggest me to the above Scenario .

Thanks.
DC
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Apr 27, 2009 2:19 pm    Post subject:
Reply with quote

Quote:
Please suggest me to the above Scenario .
Please try to explain the above scenario better?
Quote:
It wont allow the user to enter below of 0.10.
What is "it"?
Quote:
I need to move the lowvalues 0.05 to A-VariableO .
You need to move lowvalues or 0.05?
Please explain the above scenario........
Back to top
View user's profile Send private message
darcatty

New User


Joined: 03 Mar 2009
Posts: 5
Location: Chennai

PostPosted: Mon Apr 27, 2009 2:40 pm    Post subject:
Reply with quote

Actually,

Now the screen allows the user to enter lowvalue 0.01 and it wont allow the user to enter 0.05. The variables related to the attributes as declared in the previous post.

Finally i need to move 0.05 to A-VariableO. Please let me know if u need more explanation.

Thanks.
DC
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Apr 27, 2009 3:49 pm    Post subject:
Reply with quote

Quote:
allows the user to enter lowvalue 0.01 and it wont allow the user to enter 0.05.
Fix the program.
Quote:
i need to move 0.05 to A-VariableO
What part of MOVE am I missing?
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 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


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