I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?
Answer Posted / dk
No, The program will not ABEND in the case if two WRITE statements are given in the same PARA.
It's all up to your condition. If both the conditions are met, two records will be written to the file.
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
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 is the difference between Global and External Variables?
What is the usage of comp fields in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Explain about different table spaces.
Can we change the password using ALTER? anyone tried and changed?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
i need a small 3d program using inline and outline.
What is comp-1 and comp-2?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Which Search verb is equivalent to PERFORM…VARYING?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning