View previous topic :: View next topic
|
Author |
Message |
amarnath reddy Warnings : 1 New User
Joined: 08 Feb 2006 Posts: 3
|
|
|
|
hi all
goog morning.
i have a dought in jcl.
how will identify wherther the dataset is input data set or output dataset.
any ine knows give the correct answer.
Amarnath Reddy
TITLE EDITED |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
amarnath reddy,
If you have doubt in JCL ..then why to post in Job Vacancies...
Please follow rules properly.
By looking at JCL you can not always identify that dataset is an I/p or O/p, for making these things clear we use significant DD Name, DSN Name.
Also I/p file will not being created at the step... so also have a look at DISP Parameter.
Regards,
Priyesh. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
You can't identify with just JCL..Unless ur company has certain naming standards for input an output data sets. |
|
Back to top |
|
|
unni_nss
New User
Joined: 20 Sep 2005 Posts: 19
|
|
|
|
See befor executing your JCL,in ur COBOL pgm u might have assigned two files to device.
Like SELECT INPUT_FILE TO DISK1 and SELECT OUTPUT_FILE ASSIGN TO DISK2.
In jcl u must mention this device names as ddnames.So after seeing the stepnames u will know about.The input file will be having the input dat source and output file in which the cobol program is writing the output.
Thanks,
UNNI. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
rssomm wrote: |
You can't identify with just JCL..Unless ur company has certain naming standards for input an output data sets. |
Why can't JCL help. I mean Disp parameter is enough to identify right?
What is the other way we can code the output dataset in JCL. Just curious!!! |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
Why can't JCL help. I mean Disp parameter is enough to identify right? |
Wrong. For example, if the DISP says OLD, the data set might be used for either input or output.
This DD statement:
//DD1 DD DSN=MYDATASET,DISP=OLD
can be used for an existing catalogued input or output data set. If the data set is opened for input, it can be used as input. If the data set is opened for output, it can be used as output. The program controls whether the data set is used for input or output.
It is certainly possible in some cases to tell from the DD statement if a data set is used for input or output, but not in all cases. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Frank Yaeger wrote: |
Quote: |
Why can't JCL help. I mean Disp parameter is enough to identify right? |
Wrong. For example, if the DISP says OLD, the data set might be used for either input or output.
This DD statement:
//DD1 DD DSN=MYDATASET,DISP=OLD
can be used for an existing catalogued input or output data set. If the data set is opened for input, it can be used as input. If the data set is opened for output, it can be used as output. The program controls whether the data set is used for input or output.
It is certainly possible in some cases to tell from the DD statement if a data set is used for input or output, but not in all cases. |
Hmmm.You got it right!
Thanx for the Insight frank! |
|
Back to top |
|
|
punitsurana
New User
Joined: 17 Jan 2006 Posts: 6
|
|
|
|
I think the DISP=(,CATLG) or DISP=(,PASS) indicates that it is a Output Dataset. Also if an LIKE= Parameter is coded, then the dataset should be a Output Dataset. |
|
Back to top |
|
|
|