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
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 |
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 |
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 |
Explain how you can characterize tables in cobol?
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
Define cobol?
How you can delete a record from a ps file in cobol?
how do you reference the printer file formats from cobol programs
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.