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

Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.

3 Answers  


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


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 tne need to use sub programs in Cobol?

3 Answers   HSBC,


I want to declare a field with data type Double in my COBOL program. how shall i do that ?

5 Answers  






If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value

3 Answers   CTS,


Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.

1 Answers  


Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.

1 Answers  


What is a scope terminator? Give examples.

2 Answers  


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

0 Answers   IBM,


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


How to read a 100 record from a file through cobol?

2 Answers  


Categories