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

Low values to Comp-3 variable


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Mon Apr 27, 2009 2:19 pm
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
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: 2146
Location: At my coffee table

PostPosted: Mon Apr 27, 2009 3:49 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Variable Output file name DFSORT/ICETOOL 8
Search our Forums:

Back to Top