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 retrive the 9th records out of ten records using the
cobol program ?

Answer Posted / ramesh

IDENTIFICATION DIVISION.
PROGRAM-ID. RAMESH.
ENVIRONMANT DIVISION.
DATA DIVISION.
FILE-SECTION.
FD INFILE.
01 IN-REC
05 NAME
05 AGE
WORKING-STORAGE SECTION.
01 WS-COUNT PIC 99.
PROCEDURE DIVISION.
ACC-PARA.
accept ws-num
move 0 to ws-count
ADD-PARA.
read infile
add 1 to ws-count.
perform add-para until ws-count = ws-num

display in-rec.

Note: as per ur requirementprovide ws-num=9
COMPILE IT .PASS WS-NUM THRU RUN JCL SYSIN AS 9 .You will
get the 9th record.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is search and searchall?what is the diffrence between them?give an best example?

6775


What is comp-1 and comp-2?

1216


What is rmode(24)

1120


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1179


Name the sections present in data division.

1220


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1095


Describe the cobol database components?

1160


What is the difference between comp and comp-3 usage?

1177


What is amode(31)

1152


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5358


What is link edit in cobol?

1178


Can you please let me know the centre name of INS certification in Kolkata.

2226


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1138


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2090


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1991