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 |
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.
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)
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 ......
What should be the sorting order for SEARCH ALL?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Can anyone please give the example of Inline Perform.
How does IDMS communicate with CICS?
what is the difference between Plan & package
Define static linking and dynamic linking.
how can we code index in an array of cobol pgm?
What is difference between static and dynamic call in cobol?
how do u link sub pgm to main pgm ?