how would find total records in files using seqientional
Answer / guest
We can increment the count for each reading of record in a file.
Read file
count = count + 1
At end
display count
| Is This Answer Correct ? | 13 Yes | 2 No |
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How you can delete a record from a ps file in cobol?
diffrence between z(2) and z9(2)
What is EIBCALEN? Why it is used?
What is Redefines clause?
What is the difference between structured cobol programming and object alternativelyiented cobol?
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?
Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.
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 ......
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........