How do pass the values to the parameters in cobol

Answers were Sorted based on User's Feedback



How do pass the values to the parameters in cobol..

Answer / sushant kumar mohanty

1) PARM (Receive in Linkage Section)
2) SYSIN DD* (Receive with ACCEPT statement)
3) Files ( Declare/Define/Open in the program)

Is This Answer Correct ?    5 Yes 0 No

How do pass the values to the parameters in cobol..

Answer / naidu

You can pass the values to cobol program using 3 ways:
1.passing the parameters from SYSIN
2.using parm
3.using file

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

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 ?

2 Answers  


how can i see junk values in dclgen or in hostvariable of comp ?

0 Answers   DELL,


how will u pass dadta to cobol+db2 program...?

4 Answers   IBM,


what is MSGLEVEL?

1 Answers   IBM,


Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.

2 Answers   TCS,






i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 Answers  


What is the difference between index and subscript?

5 Answers   Visa,


Can the OCCURS clause be at the 01 level?

8 Answers   Oracle,


Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER

4 Answers  


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......

3 Answers   BirlaSoft,


can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?

3 Answers   IBM, Satyam,


Categories