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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm


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