how will u code parm parameter and where pls ?
Answers were Sorted based on User's Feedback
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 |
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 |
What is an in line PERFORM? When would you use it? Anything else to say about it?
what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?
How to covert given string into ASCII value in COBOL/MF COBOL
If I want to increase the Limit in GDG. What should I do?
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Which Search verb is equivalent to PERFORM…VARYING?
When is inspect verb is used in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to display the index.(displacement from an array)
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?