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 findout the in output datesets in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
jamuna

New User


Joined: 06 Apr 2006
Posts: 3

PostPosted: Tue Apr 11, 2006 11:43 am    Post subject: how to findout the in output datesets in jcl
Reply with quote

you have ooe dataset a.b.c andone datset . how you will code whether its input or output datset?
Back to top
View user's profile Send private message

umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Tue Apr 11, 2006 4:14 pm    Post subject: Re: how to findout the in output datesets in jcl
Reply with quote

Hi,
we can find out the dataset type whether its input or output depending on the disposition parameter.

if Disp=New --> its definitely new dataset
Disp=shr -- > input dataset
Disp-Mod --> here you can not say whether its new or existing dataset.

correct me if i m wrong.
Regards,
Umed
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 247
Location: Cincinnati OH USA

PostPosted: Tue Apr 11, 2006 4:39 pm    Post subject:
Reply with quote

VSAM dataset i/o mode cannot be determind by DISP
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Tue Apr 11, 2006 6:58 pm    Post subject: Re: how to findout the in output datesets in jcl
Reply with quote

hi,
As every body mentioned the file used in the jcl can be in input ,output or i/o mode ,so judging of the file can only be made by looking over the program which uses these data sets.

Correct me if i am wrong,
Thanks,
Muthuvel.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Tue Apr 11, 2006 7:28 pm    Post subject: Re: how to findout the in output datesets in jcl
Reply with quote

Quote:
Hi,
we can find out the dataset type whether its input or output depending on the disposition parameter.

if Disp=New --> its definitely new dataset
Disp=shr -- > input dataset
Disp-Mod --> here you can not say whether its new or existing dataset.



Can not we mention share for output file?

Regards
Rupesh
Back to top
View user's profile Send private message
jamuna

New User


Joined: 06 Apr 2006
Posts: 3

PostPosted: Tue Apr 11, 2006 8:21 pm    Post subject: Re: how to findout the in output datesets in jcl
Reply with quote

himy doubt is...
//s1 exec pgm=aaaaa
//dd1 dd dsn=a.b.c
//dd2 dd dsn=x.y.z
// many dd steps sre there

how u ll identify or pretend which one is input and output dataset
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Apr 11, 2006 9:12 pm    Post subject:
Reply with quote

hy jamuna,

the DISP is a jcl parameter, which tells the system
how to treat this specific resource, not how the program
is treating this resource.
you may assume that a DISP=NEW is probably
an output file, but to be exactly sure, you should look
at the programs logic.

i.e. also DISP=OLD can be output or DISP=SHR...

martin9
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am


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