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

can we read records in a file from botom to top. if possible how can we read

12 Answers   ACS,


How do you come out of an EVALUATE statement?

3 Answers  


what is the use of keep and pass in disp

1 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


what is level 66 means??

7 Answers  






How to concatenation one or more string?

4 Answers   Temenos,


what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end

3 Answers   TCS,


i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)

3 Answers   Cap Gemini, Mind Tree,


hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...

1 Answers   ITC Infotech,


How to recover a deleted source physical file from library?

1 Answers   HCL,


How is sign stored in a comp-3 field?

7 Answers  






Categories