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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm


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