how to run sub programs using static and dynamic call ...

Answer Posted / vijay kumar

static:- its is identified by the CALL LITERAL.

Syntax:- CALL 'program name'.


Dynamic:- it is identified by the variable

Ex:- 01 ws-program pic x(8)
MOVE 'program name' to ws-program
CALL 'ws-program'.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is search and searchall?what is the diffrence between them?give an best example?

5563


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17046


Describe the cobol database components?

682


What is a report item?

741


A table has two indexes defined. Which one will be used by the SEARCH?

759






can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


how do you reference the ksds vsam file formats from cobol programs

666


How to print 10 to 1 if the input have only 10 digit number?

811


What is the difference between comp and comp-3 usage?

681


What is the difference between PIC 9.99 and PIC9v99?

781


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


Why occurs cannot be used in 01 level in COBOL?

719


What are the different open modes available in cobol?

722


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

998


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 ......

10624