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 |
hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)
What is default if we don't specify RD parameter at all ?
I have a File that has duplicate records. I need only those records that occur more than thrice.
Is automatic restart possible in jcl? If yes, how?
When should DISP=MOD is used?
There are 2 steps in a JCL. If the first step abends due to system or user abend and the second step has COND specified as EVEN or ONLY, will this step still be executed inspite of the abend in the previous step?
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
A STEP has more than 1 file as INPUT. And we have to put all these records int 1 output file. How to do ? //InputF DD DSN=ID.File1 DSN=ID.File2 DSN=ID.File3
what is force complete
What does the statements: typrun=scan and typrun=hold do in a JCL statement
What is a PROC? What is the difference between an instream and a catalogued PROC?
Can you code instream data in a PROC ?