how can we fetch 3 records in cobol pgm any coding pls ?
Answers were Sorted based on User's Feedback
Answer / santhosh
Read the file and validate the things, once the all the
things are done for the record keep the count of it in an
working storage variable. Everytime when u try to read the
next record check for the count of WS variable, when it
reaches the count of 3 then terminate ur program.
|Is This Answer Correct ?||6 Yes||1 No|
Answer / madhu
we can assume 3 in-file records under fd in-file record.you
can start write nd read on 3 programs after that u can
create on jcl with 3 dif files then the out put shows on dif
files as u can given inputs follows
|Is This Answer Correct ?||1 Yes||0 No|
Answer / ravi
While reading a record from the input file keep ws- count variable for the count of records you read. When ws- count reaches count =3 put condition to terminate program
|Is This Answer Correct ?||0 Yes||0 No|
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it
what is the maximum error code in mainframe
What are the different data types in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are the cobol coding sheets?
Which division and paragraphs are mandatory for a COBOL program?
how will you define vsam file in select clause?
HOw can I get the negative sign while deduct high value from low value
What are the different types of condition in cobol and write their forms.
If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?
in cobol perform stmt whether it first checks the condition or not