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: 241
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: 287
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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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