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
Mention the content that is present inside a PPT ?
if i am having a cics,vsam and db2 programs with each functions and i want that each function on screen?
What is the term conversational programs means?
Kindly specify the pic clause for the hhmmss type of data fields?
Name the two types of transient data queues?
Explain the different ways of initiating transaction in cics?
Define communication area?
mention the option used in the cics read command to gain accessibility directly to the file i/o area. (Assume cobol-ii).?
Name the 3 common ways to create maps?
explain the means of supporting pseudo conversation programming. (Eg. Storing and restoring of states, control flow, error handling)?
Explain how DSECT parameter is used in BMS ?
What do you mean by CEMT?
What is the use of the eibaid field?
what is the cics command used to access current date and time?
Explain the difference between link and xctl?