How can I tell if a module is being called DYNAMICALLY or
STATICALLY?
Answers were Sorted based on User's Feedback
Answer / sudha
If there is DYNAM compiler option then the module is
dynamically called. A STATICally called module is one that
is bound with the calling module at link edit, and
therefore becomes part of the executable load module.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / dev
also the method of calling is differnt in cobol code also
static call
call 'pgmname'
dyanmic call
call identifier eg call pgmvar
where pgmvar is a working storage variable having the pgm
name
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / arun
Answer 1 is exact. calling a program using working-storage
variable is implicit call and it does not make a dynamic
call.
| Is This Answer Correct ? | 8 Yes | 0 No |
wht is packed decimal in cobol
What are the differences between COBOL and COBOL II?
is this below syntax correct? CALL 'subprg' using A,B Please help
have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..
what is Pic 9v99 Indicates?
1.Can we define condition-name conditions in FD entry.
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
How many sections are there in data division?.
how we rectify soc7 and soc4 errors in project?
what is s013u000 for?
I have PS flat file with 14 records. I want to read from 4th to 9th record and want to write those 6 records (4th record to 9th record) to another PS file (output file). there is no key defined in the input file. I just want read a certain Consecutive records. can any one please give me the procedure division Coding for this. I have coded the below coding but the READ-PARA is performing only 1 time even though I have 14 records in my input file (i.e FILE-1): PROCEDURE DIVISION. A000-SECTION. MOVE 0 TO I. OPEN INPUT FILE-1. IF CHECK-KEY1 > 0 DISPLAY "OPEN ERROR FOR FILE-1, CODE IS:" CHECK-KEY1 END-IF. OPEN EXTEND NEWFILE-1 IF CHECK-KEY3 > 0 DISPLAY "OPEN ERROR FOR NEWFILE-1 COD IS" CHECK-KEY3 END-IF. PERFORM READ-PARA THRU EXIT-PARA UNTIL EOF-REC = 'YES'. DISPLAY " FINALLY OUT OF LOOP" CLOSE FILE-1 CLOSE NEWFILE-1 STOP RUN. READ-PARA. ADD 1 TO I READ FILE-1 AT END MOVE 'YES' TO EOF-REC IF I > 3 AND < 10 PERFORM WRITE-PARA ELSE DISPLAY "NOT IN RANGE" END-IF. EXIT-PARA. EXIT. WRITE-PARA. WRITE NEW-REC FROM FILE1-REC.