Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us