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 variable account-number declared as comp-3, s9(10)
comp-3 in a file. How do i find a particular account number
say 123456 in that file?

Answers were Sorted based on User's Feedback



I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a part..

Answer / manoj

there are few ways for that
1. Write a cobol program
if com3field = 123456
display 'record'
2. Open the file in HEX ON mode and read records one by one :)
3. else use sort utility in jcl
OPTION COPY
INCLUDE COND=(1,8,PD,EQ,123456)

Is This Answer Correct ?    0 Yes 0 No

I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a part..

Answer / vs kumar

By using File-aid we can see the comp-3 data item.

Please correct me if i am wrong.

Is This Answer Correct ?    0 Yes 1 No

I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a part..

Answer / balaji

Put HEX ON in the file and you can find the numbers
equivalent to the hexa decimal

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


) What is the use of IGNORE?

1 Answers   IBM,


what are the isolation levels and where we use it in the db2 program

3 Answers   TCS,


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


What rules are followed by the search verb.

0 Answers  


What is the meaning of 'Eject' verb in cobol?

2 Answers   TCS, Wipro,


01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name

5 Answers   TCS,


where do we use dyanamic call ? and where do we use static call pls give any example pls ?

3 Answers   Patni,


can we use reference modification an arry.

1 Answers  


Write a program to explain size error.

0 Answers  


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

0 Answers  


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


Categories