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

What is Disposition when we do XDC against a spool job


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Fri Mar 07, 2008 10:16 pm
Reply with quote

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
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Sat Mar 08, 2008 12:20 am
Reply with quote

These DISPOSITION are as same as how we use them for datasets in JCL in terms of functionalities and all.
Back to top
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Sat Mar 08, 2008 2:07 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Mar 08, 2008 3:58 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sat Mar 08, 2008 5:08 am
Reply with quote

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
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Sat Mar 08, 2008 5:47 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Mar 08, 2008 5:56 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Mar 08, 2008 6:19 am
Reply with quote

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.. icon_smile.gif
Back to top
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Sat Mar 08, 2008 6:22 am
Reply with quote

thanks guys icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Mar 09, 2008 1:20 am
Reply with quote

Hi Sunny,

As always..pleasure is all mine.. icon_smile.gif
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts Capturing logs from spool dd JCL & VSAM 6
No new posts No sysout coming in spool JCL & VSAM 4
No new posts SPOOL commands for INTRDR CICS 8
No new posts Reading mainframe job spool while the... JCL & VSAM 7
Search our Forums:

Back to Top