I have a Field which is of size 9(4). In the Screen if I enter
the value for this field as 1234, it showing it as Valid. But if
I enter only one or two digits, zeros should be appended in the
remaining places. For example: When u enter 1 in the screen the
output should be 0001. When you enter 12, output should be 0012.
How to achieve this in the program?
Answer Posted / girish kumar
code like this for the addtion.
functional num value of (input field1)
finctional num value of (input field2)
example.
functional num value(IN1)
functional num value(IN2)
SUM=ADD THE ABOVE TO FIELDS
TRY THIS IT WILL REALLY WORKS
NOTE= give the picture clause is ALPHA NUMARIC
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Define ceci?
Define cedf?
Add a field to screen when what's the flow of impact?
specify the requirements for automatic task initiation. (Mention the control table, it is entries and the corresponding procedure division cics command).?
Is length = 0 sufficient to ascertain that the field has been modified?
What does the 'ceci:cics' transactions do?
what is eib, how is can be used?
What does the 'cebr:cics' transactions do?
Differentiate between PCT and FCT.
What is fset?
Explain how do you set the mdt option to on status, even if data is not entered?
What will happen if some program tries to process a queue on which an ENQ command has been issued by some other program?
What is DEQ?
What is the meaning of the eibaid field?
Name the three ways available for a program to position the cursor on the screen?