Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


is this below syntax correct?

CALL 'subprg' using A,B

Please help

Answers were Sorted based on User's Feedback



is this below syntax correct? CALL 'subprg' using A,B Please help..

Answer / lu

yes, ...look at this ex:

For calling sub-modules DYNAMICALLY - Code:
In Working Storage Section -

01 WS-PROGRAM PIC X(08).

MOVE 'SUBPROGA' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)

MOVE 'SUBPROGB' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)

MOVE 'SUBPROGC' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)


For Calling STATICALLY, check your compiler option. If it
is NODYNAM then use -
Code:
CALL 'SUBPROGA' USING ...(Your parameters)
CALL 'SUBPROGB' USING ...(Your parameters)
CALL 'SUBPROGC' USING ...(Your parameters)

Is This Answer Correct ?    9 Yes 1 No

is this below syntax correct? CALL 'subprg' using A,B Please help..

Answer / billyboyo

Yes, your syntax is correct.

This is using the "call literal" option of IBM Cobol. If
you do need the call to be dynamic, specify the DYNAM
option on the compile.

If you were to have used "call data-name" then the call is
perforce dynamic and unaffected by DYNAM/NODYNAM compile
option.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

Difference between ps, esds

3 Answers  


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


What is rmode(24)

0 Answers  


What is the use of EVALUATE statement?

4 Answers   Tesco,


What is Pic 9v99 Indicates in COBOL?

0 Answers   SwanSoft Technologies,


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

0 Answers  


can we use full outer join with cursors declared in cobol program?

2 Answers  


If you were passing a table via linkage, which is preferable - a subscript or an index?

3 Answers   TCS,


How we copy a program from production region to development region.What is the process & syntax ?

3 Answers   CTS,


What is SDSF?

13 Answers   IBM,


we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?

1 Answers  


Categories