u have passed sme charecters thru parm parameter in jcl. how do u
code in cobol to recieve the values u gave in parm ?

Answers were Sorted based on User's Feedback



u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the valu..

Answer / graham

by using 'USING' keyword in procedure division and dataname.
one restriction is, declaring length variable and dataname
in linkage section of covol program.

Is This Answer Correct ?    18 Yes 2 No

u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the valu..

Answer / gangadhara.m

by using 'USING' keyword in procedure division and dataname.
one restriction is, declaring length variable and dataname
in linkage section of covol program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

2 Answers   Syntel,


what is the diff b/w select stsmt and cursor ?

2 Answers  


a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?

2 Answers  


I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?

5 Answers   Cognizant,


What is the difference between Perform para and perform asaection in cobol?

3 Answers   TCS,


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

1 Answers   IBM,


01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?

4 Answers   CSC, TCS,


i want a program using by if, evaluate , string, unstring, perform, occurs?

2 Answers  


Whtz the specialty of 77 level number ?

2 Answers   Infosys,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


Categories