Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Sorry for the above answer i thought zeros should be supressed.

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='9(4)',
PICIN='9(4)'

If zeros should be supressed then code following

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 ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Receive consists of buffer option in it. What is the significance of this option?

1044


Explain the difference between dfhcommarea and tsq?

1089


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?

1105


Can you explain exec cics handle condition command?

1070


Name the command which is used to release a record on which exclusive control is gained?

1005


Highlight the points of differences between XCTL and START?

1230


What are some of the cics commands associated with interval control?

1026


Define an aica abend?

1102


What will happen if some program tries to process a queue on which an ENQ command has been issued by some other program?

2693


What is cics load command?

1060


Explain the difference between using the read command with into option and set option?

1021


What is the main function of the sign-on table?

1072


Name the three ways available for a program to position the cursor on the screen?

1083


What is meant by an AICA ABEND?

1163


What is the eib?

1022