how will u code parm parameter and where pls ?

Answers were Sorted based on User's Feedback



how will u code parm parameter and where pls ?..

Answer / hari nagisetty

In JCL

//step1 exec pgm=cobprog,parm='abcdef'

In COBOl

LINKAGE SECTIN.

01 PARM-FIELD.
05 PARM-LENGTH PIC S9(4).
05 PARM-VALUE PIC X(6).

PROCEDURE DIVISION USING PARM-FIELD.



abcdf will reflect in PARM-VALUE

Is This Answer Correct ?    20 Yes 2 No

how will u code parm parameter and where pls ?..

Answer / alla srikanth

//step01 exec pgm=pgm1,parm='data'

Is This Answer Correct ?    8 Yes 0 No

how will u code parm parameter and where pls ?..

Answer / rakesh reddy

In JCL

//step1 exec pgm=cobprog,parm='abcdef'

In COBOl

LINKAGE SECTIN.

01 PARM-FIELD.
05 PARM-LENGTH PIC S9(4)comp.
05 PARM-VALUE PIC X(6).

PROCEDURE DIVISION USING PARM-FIELD.



abcdf will reflect in PARM-VALUE

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

How to use the same COBOL program in Batch and CICS on lines? explain with an example

0 Answers   IBM,


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

4 Answers   Accenture,


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


using redefine can you redefine lower variable size to higher variable size?

3 Answers   Patni,






what are the working storage fields in BMS macro?

2 Answers   IBM,


How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.

3 Answers  


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

0 Answers   IBM,


What is level 66 used for ?

3 Answers   TCS,


Describe the cobol database components?

0 Answers  


If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

7 Answers   BirlaSoft,


In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


Categories