View previous topic :: View next topic
|
Author |
Message |
jamuna
New User
Joined: 06 Apr 2006 Posts: 3
|
|
|
|
you have ooe dataset a.b.c andone datset . how you will code whether its input or output datset? |
|
Back to top |
|
|
umed
New User
Joined: 13 May 2005 Posts: 38
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
VSAM dataset i/o mode cannot be determind by DISP |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
jamuna
New User
Joined: 06 Apr 2006 Posts: 3
|
|
|
|
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 |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
|