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 / veena
In Attrib=(UNPROT,FSET,NUM),
Num in the Attrib gives zeroes when digits are entered.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Name the cics command used to access current date and time?
What is task control?
Explain ceci transaction commands?
Explain processing program table(ppt)?
when you compile a cics program, the (pre) compiler puts an extra chunk of code. Where does it get included and that is it called? What is its length?
Explain how do you set the mdt option to on status, even if data is not entered?
What are the common cics service programs and explain their usage?
Particular area has been affected in cics screen, what is the process to find?
which cics command must be issued by the application program in order to gain access to the common work area (cwa)?
Explain the use of DCT ?
Mention one alternative aspect of CICS?
What is frset?
What is the meaning of the enq command?
Can you define attribute byte?
Explain the function of the load command?