How to find How Many Lines in Sysin DD * Parameter Thru
Cobol Coding?
If any one knows the Answer Please Reply .....Thanks From
Shree

Answers were Sorted based on User's Feedback



How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer..

Answer / guest1

you need to put it in a loo. In sysin dd* u need to pass a
value that will terminate loop. (Here say /1*)
in your cobol coding performthe loop till it reaches '/1*'.
For every accept, increment the counter variable by 1. Once
the loop is terminated, display the count.
Hope that this could help you.

Is This Answer Correct ?    5 Yes 0 No

How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer..

Answer / shiva

sys inn dd*...is used to pass data from jcl to cobol...

so in shorter way... how many accept stmts u code in cobol
that many relative values only it will consider frm
jcl...beyond tat it will neglect....

Is This Answer Correct ?    1 Yes 2 No

How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer..

Answer / sruthi

We can say how many lines in sysin dd * parameter by seeing
ACCEPT stmt in cobol pgm.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More COBOL Interview Questions

Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

4 Answers   Accenture,


What should be the sorting order for SEARCH ALL?

5 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,






Can anyone please give the example of Inline Perform.

6 Answers   TCS,


How does IDMS communicate with CICS?

1 Answers   Covansys, Satyam,


what is the difference between Plan & package

3 Answers   IBM,


Define static linking and dynamic linking.

0 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


What is difference between static and dynamic call in cobol?

0 Answers  


how do u link sub pgm to main pgm ?

2 Answers   TCS,


Categories