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

what is ASRA, AEY9?

2 Answers   IBM,


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


How arrays can be defined in COBOL?

0 Answers  


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  


i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 Answers  


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


How to increase the logical record length of existing PS file?

7 Answers  


how can u redefine picx(10) with pic 9(6).

3 Answers   TCS,


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

0 Answers  


Categories