What are subroutines ? and how do we pass data to the sub
routines?
Answer Posted / harish
subroutines are normal cobol program called by another
program...
so data passed through linkake section
in main prog we have to code
call 'sub' using a1,a2
then in subprog accept these a1 and a2 with same name or
differnt doesnt matter
then in procedure division
procedure division using a1,a2.
.........
pls correct me if anything wrong
HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the different rules of SORT operation?
What is length is cobol?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
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 are declaratives and what are their uses in cobol?
How do get the result of your program directly on your pc?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the LINKAGE SECTION used in COBOL?
What is static and dynamic call in cobol?
What is a scope terminator give example?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
how do you reference the variable block file formats from cobol programs
How arrays can be defined in COBOL?
) How do u handle errors in BMS macro?
How you can characterize tables in cobol?