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


Please Help Members By Posting Answers For Below Questions

Name the cics command used to access current date and time?

566


What is task control?

579


Explain ceci transaction commands?

556


Explain processing program table(ppt)?

630


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?

631






Explain how do you set the mdt option to on status, even if data is not entered?

599


What are the common cics service programs and explain their usage?

558


Particular area has been affected in cics screen, what is the process to find?

8518


which cics command must be issued by the application program in order to gain access to the common work area (cwa)?

660


Explain the use of DCT ?

658


Mention one alternative aspect of CICS?

621


What is frset?

568


What is the meaning of the enq command?

579


Can you define attribute byte?

576


Explain the function of the load command?

575