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...


how to code the following map using occours clause?
all the three fields have different length.
ename eno addr

1) _______ _________ __________
2) _______ _________ __________
3) _______ _________ __________
4) _______ _________ __________
5) _______ _________ __________
6) _______ _________ __________




how to code the following map using occours clause? all the three fields have different length. ..

Answer / sandeep

code BMS macro with all the fields I mean with all the
occurances. for example

give the first occurence field name as ename1, eno1,addrr1
and second line field as

ename2, eno2,addrr2 and respectively for all the six
occurences. Once you generate a map the symbolic map
consists of all the fields it looks like below (coded for
output field i.e Field+O only)


03 filler picture x(2)
03 ename1a pic x
03 ename1o pic x(10)
03 filler pic x(2)
03 eno1a pic x
03 enoO pic x(10)
03 filler pic x(2)
03 addr1a pic x
03 addrO pic x(10)
03 filler picture x(2)
03 ename2a pic x
03 ename2o pic x(10)
.
.
etc

You need to modify above symbolic map as shown below

02 employee OCCURS 6.
03 enamea pic x
03 enameo pic x(10)
03 filler pic x(2)
03 enoa pic x
03 enoO pic x(10)
03 filler pic x(2)
03 addra pic x
03 addrO pic x(10)

You can also give Occurs clause in BMS macro
Ex:
TELNO DFHMDF POS=(7,1),LENGTH=9,ATTRB=NORM,OCCURS=40
The description of these fields in the symbolic map looks
like this in COBOL:

02 TELNOG OCCURS 40.
03 FILLER PICTURE X(2).
03 TELNOA PICTURE X.
03 TELNOO PIC X(9).

Is This Answer Correct ?    13 Yes 4 No

Post New Answer

More CICS Interview Questions

list the sequence of steps used to achieve modiication in skip sequential mode?

0 Answers   IBM,


In an on-line environment, how can you prevent more than one user from accessing the same Transient Data Queue at the same time?

2 Answers   IBM,


how to code the following map using occours clause? all the three fields have different length. ename eno addr 1) _______ _________ __________ 2) _______ _________ __________ 3) _______ _________ __________ 4) _______ _________ __________ 5) _______ _________ __________ 6) _______ _________ __________

1 Answers   L&T, TCS, Wipro,


Why is GETMAIN command needed?? Will program not work if we do not give GETMAIN?

2 Answers   Accenture,


What is EXEC CICS RETRIEVE ?

1 Answers   IBM,


Explain what is a cursor in cics sql processing?

0 Answers  


What is the cics command that is used to access current date and time?

0 Answers  


What is task control?

0 Answers  


If we wish to create bms executable, what are the basic steps that the user has to go through?

0 Answers  


What is MDT? What are FSET, FRSET ?

3 Answers   IBM,


Explain the function of the terminal control table?

0 Answers  


Explain the function of the load command?

0 Answers  


Categories