Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us