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 we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


what are the working storage fields in BMS macro?

2 Answers   IBM,


Can we move X(7) to S9(7) COMP?

1 Answers  


What is amode(24)?

0 Answers  


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


what is MSGLEVEL?

1 Answers   IBM,


What is IMPACT analysis?

2 Answers   IBM,


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

5 Answers   CTS,


i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19

2 Answers  


How can we increase the size of an existing PDS to include more no. of modules.

3 Answers  


plz any one tell clearly the justify right clause?

1 Answers  


What are the different types of condition in cobol and write their forms.

0 Answers  


Categories