Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to know the dataset is input data set or output dataset
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: 1452
Location: Chicago, IL

PostPosted: Thu Feb 09, 2006 11:39 am    Post subject: Re: Doubt in jcl
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    Post subject: Re: Doubt in jcl
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    Post subject: IN/OUT FILES
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    Post subject: Re: Doubt in jcl
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 Moderator


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

PostPosted: Thu Feb 09, 2006 10:22 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us