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 we get current dat and time thru cobol pgm

3 Answers   DELL,


What should be the sorting order for SEARCH ALL?

5 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please

2 Answers  


Differentiate COBOL and COBOL-II?

0 Answers  


copy 100 records without using ibm utilities

3 Answers  


how can i see junk values in dclgen or in hostvariable of comp ?

0 Answers   DELL,


01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?

1 Answers  


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

1 Answers  


what is label record is standard or omitted in file description of data division?

3 Answers   IBM, TCS,


Categories