how do u define a file in cobol and jcl ?

Answers were Sorted based on User's Feedback



how do u define a file in cobol and jcl ?..

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

how do u define a file in cobol and jcl ?..

Answer / snehatechm

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

Post New Answer

More JCL Interview Questions

Is condition checking possible in jcl? If yes, how?

0 Answers  


What is one line to pass PARM from JCL to COBOL?

0 Answers  


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

0 Answers  


Can comments be specified at the very beginning of a jobcard? Will the JCL execute?

3 Answers  


How I sort the records in a file and copy the first 10 records to another file

5 Answers  






What will happen if we write two STOP RUN's in a COBOL program?

4 Answers   Satyam,


Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc and not the remaining steps. How can we do it?

5 Answers   IBM, JPMorgan Chase,


Explain about LMGET�read a logical record from a data set

1 Answers  


can we copy a file from fixed block to variable block and vice versa ....asap

1 Answers  


I have three files for one step i need to override the third file how to do that in jcl?

1 Answers   UST,


what are the options in file-aid to edit vsam dataset and to compare data sets.

2 Answers   Ocwen,


Categories