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

how to findout the in output datesets in jcl


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Apr 11, 2006 4:39 pm
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: Canada

PostPosted: Tue Apr 11, 2006 6:58 pm
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: 463

PostPosted: Tue Apr 11, 2006 7:28 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
No new posts XL C Trace Preprocessor Output All Other Mainframe Topics 3
Search our Forums:

Back to Top