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

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

2 Answers   IBM,


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

0 Answers  


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,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

0 Answers  






In which area will you utilize 88 level items in cobol?

0 Answers  


What is the different between index and subscript?

3 Answers  


COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


how to display the dataset information?

2 Answers  


i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast

4 Answers   L&T,


is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,


Categories