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 / y@$w@nth
When at the time of defining the field in the map we can code
PICOUT option for eg:
SUPFIELD DFHMDF POS=(**,**),
LENGTH=4,
ATTRIB=(UNPROT,FSET),
PICOUT=z(3)9,
PICIN=z(3)9
Correct me if i am wrong
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How to handle exceptional conditions in cics?
How To Compile The COBOL-BD2-CI CS Programs In Real TIme? Please Give Me the Detailed Description?
Explain how DSECT parameter is used in BMS ?
What is the pic clause for the hhmmss type of data fields?
Define an asra?
Why do we need integrated cics translator?
what is the most common way of building queue-id of a tsq?
Highlight the difference between a symbolic map and physical map?
What is the term conversational programs means?
What is the use of mdt (modified data tag)?
What are the cics commands associated with task control?
What is meant by an AICA ABEND?
Name the 3 common ways to create maps?
Code the related portions of cics/cobol-i programs to gain addressability to twa area assigned to a particular task. Assme that the size of twa area is 300bytes. What are the advantages if cobol-ii is used in the place of cobol?
What does the 'cemt:cics' transactions do?