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?

Answers were Sorted based on User's Feedback



I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / 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

I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / guest

With the help of PICOUT 9999 in DFHMDF.

Is This Answer Correct ?    4 Yes 2 No

I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / veena

In Attrib=(UNPROT,FSET,NUM),

Num in the Attrib gives zeroes when digits are entered.

Is This Answer Correct ?    0 Yes 0 No

I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / girish kumar

IN THE MAP JUST U CODE PICIN AS X(LENGTH) AND NEVER CODE THE
ANYTHING IN THE "INITIAL" JUST GIVE A BLANK SPACE.
FOR EX: IF YOU ARE DOING ADDITION USE
FUNCTION NUM VALUES(NO1I) PIC X(5).
FUNCTION NUM VALUES(NO2I) PIC X(5).
THEN COMPUTE NO1I + NO2I.

CODE LIKE THIS IN APPLICATION PROGRAM
I GET THE EXACT RESULT.

Is This Answer Correct ?    0 Yes 0 No

I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / kavin

just move low-values to map variables.

Is This Answer Correct ?    0 Yes 0 No

I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / 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

I have a Field which is of size 9(4). In the Screen if I enter the value for this field as 1234, i..

Answer / 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

More CICS Interview Questions

What are the six different types of argument values in COBOL that can be placed in various options of a CICS command?

1 Answers  


With the use of an alternate index, how is a VSAM file accessed?

0 Answers  


An XCTL uses more CPU time than LINK (True or False)

1 Answers  


kindly specify the pic clause for the following:any bll cell, data type of length option field, hhmmss type of data fields?

0 Answers   IBM,


What is the abend command?

0 Answers  


How does COBOL11 and CICS release 1.7 provide for exceptional and how does that differ from VS COBOL and earlier CICS release?

1 Answers   IBM,


What is the EIB (execute interface block)?

2 Answers   IBM,


Name three ways the Modified Data Tag can be set on?

6 Answers   IBM,


What is EIB. How it can be used?

1 Answers  


How can we code a program such that we will never get a MAPFAIL error?

1 Answers   Accenture,


Can you access ESDS files from CICS ?

2 Answers   IBM,


How to differenciate the given coding is pseudo conversational? (except EIBCALEN condition)

4 Answers   HSBC,


Categories