IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to know the dataset is input data set or output dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amarnath reddy
Warnings : 1

New User


Joined: 08 Feb 2006
Posts: 3

PostPosted: Thu Feb 09, 2006 11:28 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Feb 09, 2006 11:39 am
Reply with quote

amarnath reddy,

If you have doubt in JCL ..then why to post in Job Vacancies... icon_mad.gif
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
View user's profile Send private message
rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Thu Feb 09, 2006 11:58 am
Reply with quote

You can't identify with just JCL..Unless ur company has certain naming standards for input an output data sets.
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Thu Feb 09, 2006 12:47 pm
Reply with quote

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
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Feb 09, 2006 3:49 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Feb 09, 2006 10:22 pm
Reply with quote

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
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Feb 09, 2006 10:39 pm
Reply with quote

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
View user's profile Send private message
punitsurana

New User


Joined: 17 Jan 2006
Posts: 6

PostPosted: Mon Feb 13, 2006 2:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top