View previous topic :: View next topic
|
Author |
Message |
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
hello all
a small query
what does the below indicated things ignify ( old etc )
Disposition ===> new (OLD, NEW, SHR, MOD)
help is appreciated .
Sunny |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
These DISPOSITION are as same as how we use them for datasets in JCL in terms of functionalities and all. |
|
Back to top |
|
|
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
Hi Gnanas , I was doing XDC and gave disposition as OLD , yet it created a new pds member ( since the name i gave didn't exist in the PDS ) .
is the following interpretation wrong ?
NEW - Dataset will be created. (file should not exists)
OLD - Dataset should exists.
MOD - Dataset will be created If not exists.
SHR - Dataset can be used by other jobs also
Please add to the above info , if something is incomplete
D02383M initially didn't exist in "PRD.SZA.MAP"
my screen shot :---------------------------------------------------------
Data set name ===> 'PRD.SZA.MAP'
Member to use ===> D02383M
Disposition ===> OLD (OLD, NEW, SHR, MOD)
If the data set is to be created, specify the following.
Volume serial will be used to locate existing data sets if specified.
Management class ===> (Blank for default management class)
Storage class ===> (Blank for default storage class)
Volume serial ===> (Blank for authorized default volume)
Device type ===> (Generic unit or device address)
Data class ===> (Blank for default data class)
Space units ===> BLKS (BLKS, TRKS, CYLS, BY, KB, or MB)
Primary quantity ===> 500 (In above units)
Secondary quantity ===> 500 (In above units)
Directory blocks ===> (Zero for sequential data set)
Record format ===> FB
Record length ===> 240
Block size ===> 3120 |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Interpretations, you show, would depend on where You want to store the 'XDC-data', in a Member of existing PDS or in an DSN.
Quote: |
I was doing XDC and gave disposition as OLD , yet it created a new pds member |
This DISP is meant for PDS & not for the Member name You provide in 'Member to use'. So it creats a member with the name You provide in the 'OLD' PDS You provide in 'Data set name' . But if the PDS doesn't exist You'll not be allowed to create it via DISP =NEW, to store XDC-data in a Member, PDS must exist.
MOD cann't be used for PDS, it's used for DSN. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Anuj,
when you say
Quote: |
MOD cann't be used for PDS, it's used for DSN.
|
you do mean a PS and not DSN, a DSN doesn't determine the method of organisation (DSORG)
Gerry |
|
Back to top |
|
|
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
Hello Anuj
thanks for ur reply. I tried the possible combinations and observed the following :
Data set name ===> 'PRD.SZA.TRY'
Member to use ===>
Disposition ===> NEW (OLD, NEW, SHR, MOD)
a new dataset is created . similar happens for MOD ,
With OLD .. it can be used to specify both PDS and dataset set
. with an existing PDS (in Data set name ) , it requires a member name (Member to use ) and if pds doesn't exist it.. it assumes we are wanting a new dataset and it looks for the dataset by the name we specified.. which if exists .. it just transferes the data in that DATAset...
my query . - is all stated above ok |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
gcicchet wrote: |
you do mean a PS and not DSN, a DSN doesn't determine the method of organisation (DSORG) |
Yes Gerry, i meant QSAM (PS). DSN is rather general in this context, better differentiation could be QSAM & PDS in my previous post.
I hope, You made this point as QSAM or PDS both are actually DSN only? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
sunny_io wrote: |
a new dataset is created . similar happens for MOD ,
With DISP=NEW, a new QSAM (PS) will be created. |
If you use MOD, then if file does not exist, it'll be created, if it exist 'new' data will be appended to the exising QSAM file.
sunny_io wrote: |
With OLD .. it can be used to specify both PDS and dataset set |
With OLD 'new' data is written if QSAM & 'previous' data in the QSAM is lost.
Yes wit PDS it'll work , as PDS exist so the DISP=OLD is ok.
Quote: |
with an existing PDS (in Data set name ) , it requires a member name (Member to use ) and if pds doesn't exist it.. it assumes we are wanting a new dataset |
We need a new QSAM file.
Quote: |
and it looks for the dataset by the name we specified.. which if exists .. it just transferes the data in that DATAset... |
If QSAM exist You won't be able to use NEW, either MOD or OLD. If tried, You get a message
Code: |
NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG |
Quote: |
my query . - is all stated above ok |
Guess ..what i'm thinking.. |
|
Back to top |
|
|
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
thanks guys |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Sunny,
As always..pleasure is all mine.. |
|
Back to top |
|
|
|