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
 

 

What is Disposition when we do XDC against a spool job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: What is Disposition when we do XDC against a spool job
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: 785
Location: Chennai, India

PostPosted: Sat Mar 08, 2008 12:20 am    Post subject:
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    Post subject: what is disposition "old" in XDC command
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

Senior Member


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

PostPosted: Sat Mar 08, 2008 3:58 am    Post subject:
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: 1703
Location: Australia

PostPosted: Sat Mar 08, 2008 5:08 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Sat Mar 08, 2008 5:56 am    Post subject:
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

Senior Member


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

PostPosted: Sat Mar 08, 2008 6:19 am    Post subject:
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Sun Mar 09, 2008 1:20 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Report output in Spool amitc23 JCL & VSAM 4 Tue Apr 26, 2016 4:32 pm
No new posts Extract specific step spool data enrico-sorichetti JCL & VSAM 1 Thu Feb 04, 2016 9:48 am
No new posts XML generated from cobol is displayin... vangeti COBOL Programming 2 Wed Aug 19, 2015 5:16 pm
No new posts How to find out the line using OFFSET... Vinay Pushpala PL/I & Assembler 1 Fri Apr 03, 2015 11:43 am
No new posts Spool data using JCL Khadhar Basha JCL & VSAM 3 Wed Jan 21, 2015 8:51 pm


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