how do u define a file in cobol and jcl ?
Answers were Sorted based on User's Feedback
Answer / venkateswarlu
In cobol we define a file by using 'SELECT' statement.
In jcl we define it by using 'DD' statement.
| Is This Answer Correct ? | 7 Yes | 0 No |
decalre file in cobol- select filename assign to dd1
in jcl - dd1 will be the ddname for your jcl
| Is This Answer Correct ? | 2 Yes | 0 No |
How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.
GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?
i have a file which contains duplicates ? my requirement is to eliminate duplicates and these elminated duplicates should be moved to another file can any code this using sort ?
Suppose there are 10 steps in a PROC, I want to execute only step5. How do you give the condition in the JCL that calls this PROC?
if we give TIME=0 how many sec that job/step
Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?
What is the motivation behind coding class parameter in job statement?
I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero
I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above
Can we write same stepname for one or more steps in on job ?
diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)