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

What is difference between static and dynamic call in cobol?

0 Answers  


How to pass return codes from cobol to jcl?

5 Answers  


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,


What is IMPACT analysis?

2 Answers   IBM,


What are the divisions in a cobol program? Which one is the mandatory division among them?

1 Answers  






I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

0 Answers   HCL,


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


why do u need inspect verb?

3 Answers   Patni,


What are some examples of command terminators?

1 Answers  


Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.

4 Answers   TCS,


How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?

1 Answers   CTS,


what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?

2 Answers   Satyam,


Categories