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

To make a dataset to be stored permanently.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ESSPRABHU

New User


Joined: 11 Oct 2005
Posts: 22

PostPosted: Thu Sep 27, 2007 4:10 pm
Reply with quote

one of our jobs is creating a temporary dataset with the following parameters :
DISP=(NEW,CATLG,DELETE),
UNIT=SYSDA,
SPACE=(TRK,(50,10),RLSE),
DCB=(RECFM=FB,BLKSIZE=0,LRECL=615)

But now it's required to store the dataset permanently.
with minimum changes i have to do this.

Prabhu.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 27, 2007 4:17 pm
Reply with quote

Quote:
DISP=(NEW,CATLG,DELETE),


As per the DISP position your dataset would get catalogued if the job runs fine and get deleted if it abends.

Usually temporary dataset would have PASS specified in the DISP Position.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Sep 27, 2007 4:30 pm
Reply with quote

ESSPRABHU wrote:
But now it's required to store the dataset permanently.

Hi,

I didn't understand this, can you please repharse this sentence. Where do you want to 'store' ? What's the meaning of 'store' ?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 4:32 pm
Reply with quote

Prabhu,

Quote:
one of our jobs is creating a temporary dataset with the following parameters :
DISP=(NEW,CATLG,DELETE),
UNIT=SYSDA,
SPACE=(TRK,(50,10),RLSE),
DCB=(RECFM=FB,BLKSIZE=0,LRECL=615)

Could you post the entire DD statement declaration.
Back to top
View user's profile Send private message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Thu Sep 27, 2007 5:38 pm
Reply with quote

I did not understand the issue ... Howevr, If u want a permanent dataset just give a dsn name ... If the issue is something else plz write in detail ...
Back to top
View user's profile Send private message
ESSPRABHU

New User


Joined: 11 Oct 2005
Posts: 22

PostPosted: Thu Sep 27, 2007 6:48 pm
Reply with quote

Hi,

Now the dataset is being stored temporarily on DASD, means after few days it is getting deleted automatically. so for the next subsequent job which access this dataset (which will run after some days), this dataset is not available.

But we want to keep the dataset permanantly without getting deleted automatically.
For that can I use the UNIT parameter as UNIT=PERMDA.
Apart from this change , what changes should I do.
Back to top
View user's profile Send private message
saptagiri kintali

New User


Joined: 21 Sep 2007
Posts: 20
Location: chennai

PostPosted: Thu Sep 27, 2007 7:05 pm
Reply with quote

check by giving disp=(new,keep,keep) .i think this will work.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Sep 27, 2007 7:09 pm
Reply with quote

Hi,

I do not know what is UNIT=PERMDA, can you please tell me for what this parameter is?



I know about one parameter known as Management class, which is responsible for deletion or 'storage' of some DSN.

For an SMS-managed data set (one with a storage class assigned), the system handles the migration and backup of the data set based on the attributes defined in the management class for the data set.

In many cases, the attributes defined in the management class selected by an installation-written automatic class selection (ACS) routine are sufficient for the data sets you create with DD statements. However, you can specify the name of a management class on the MGMTCLAS parameter for a new SMS-managed data set. (Note that an ACS routine can override the management class that you specify.)

The storage administrator at your installation defines the names of management classes and their attributes. To view a list of management class names and their attributes, use the Interactive Storage Management Facility (ISMF).

Examples
Code:
//DD8 DD DSNAME=DESIGND.PGM,DISP=(NEW,KEEP)
//DD9 DD DSNAME=DESIGNE.PGM,MGMTCLAS=MCLASA,DISP=(NEW,KEEP)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Sep 27, 2007 7:22 pm
Reply with quote

saptagiri kintali wrote:
check by giving disp=(new,keep,keep) .i think this will work.

Sure ?

Please serach for DISP parameter in some JCL manual or in the forum, I hope, you would like to suggest a new solution on next visit of this topic.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 7:47 pm
Reply with quote

Prabhu,

Quote:
In many cases, the attributes defined in the management class selected by an installation-written automatic class selection (ACS) routine are sufficient for the data sets you create with DD statements. However, you can specify the name of a management class on the MGMTCLAS parameter for a new SMS-managed data set. (Note that an ACS routine can override the management class that you specify.)


I support Anuj. Before you apply the parameter what Anuj had suggested, speak with your local STORAGE team. There should some reason for assiging the present management class to your dataset.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 27, 2007 9:32 pm
Reply with quote

Quote:
However, you can specify the name of a management class on the MGMTCLAS parameter for a new SMS-managed data set. (Note that an ACS routine can override the management class that you specify.)


Too right the ACS routines can override the user specification of MGMTCLAS. Always the case in a shop where I've set up SMS.

Us storage guys ALWAYS know best - That's why we are the storage guys icon_biggrin.gif
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Fri Sep 28, 2007 4:34 pm
Reply with quote

Hi all,

I would like to mention you all that, Once If you mention DSN as temporary and DISP=(NEW,CATLG,DELETE), The system itself will correct the DISP parameter as PASS and thats the propety of temporary dataset, I mean logical dataset not a physical one. Hence You cannot store it or catlg it any more after job complete. Its a system controlled dataset.

Instead of temporary dataset, make it as physical I mean don't use '&' while Giving DSN. You can catlg or keep or delete it depends on requirement.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Sep 28, 2007 7:04 pm
Reply with quote

Hi Hemantha,

I got some queris to ask from your reply,

1.
Quote:
Once If you mention DSN as temporary and DISP=(NEW,CATLG,DELETE), The system itself will correct the DISP parameter as PASS and thats the propety of temporary dataset

Intresting concept, from where did you get this information, please direct me to some link. My question is, how the system distinguish between the DDs to understand that 'which DD' is meant for Temporary DSN & which is not? Please provide me some example for better understanding ?

2.
Quote:
Hence You cannot store it or catlg it any more after job complete

I never tried to 'store' a DSN in CATALoGue, (actually, I know to make an 'entry' of DSN in CATALoGue & can can just direct the system to do so) Please let me know that how do you do that?

3.
Quote:
Instead of temporary dataset, make it as physical I mean don't use '&' while Giving DSN

What's the definition of temporary & physical here ? I'm confused.. icon_confused.gif
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Sep 28, 2007 8:01 pm
Reply with quote

Hi together,

the file is always stored with this DISP...
but instead of giving a full qualified dataset name on the dd-statement,
it gets a system generated dataset name.
therefore give a full qualified dataset name, and
if you do not have any cleanup process for "old" files,
it will keep on disk. otherwise store it on a tape.

regards,
Martin9
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Tue Oct 09, 2007 1:52 pm
Reply with quote

Hi Anju,

Sorry for late reply, I had some work so i couldn'y able reply.

Quote:
Intresting concept, from where did you get this information, please direct me to some link. My question is, how the system distinguish between the DDs to understand that 'which DD' is meant for Temporary DSN & which is not? Please provide me some example for better understanding ?


I am afraid of with your question, Since My mind was asking question to you DON'T YOU KNOW HOW TO CODE TEMPORARY DATASET?

Its Ok, If you code '&&' in DSNAME, then system generates n treat as temporary dataset.

Just try in your system, I mean try with some job like this,

Code:
//       DD DSN=&&TEMP,DISP=(NEW,CATLG,DELETE)


Then look in job spool, Paste the message here, Then I will Tell you the link ;-)


Quote:
I never tried to 'store' a DSN in CATALoGue, (actually, I know to make an 'entry' of DSN in CATALoGue & can can just direct the system to do so) Please let me know that how do you do that?


Please look into my statement, I had said that becuase of If you are going to create a dataset means what? As I know, storing it somewhere(?)(I mean store it in tape drive or in disk(DASD)) and then make the entry in catlg for that somewhere(?). So that system will search for it.

If you don't want to make entry in catlg, how you will code in JCL?, I.e. KEEP(as per JCL)(means don't make entry in catlg but store it!!) Since without storing it somewhere how system will look for Dataset, becuase dataset itself a File(?).

Quote:
What's the definition of temporary & physical here ? I'm confused..


I suggest you to read JCL concept on Temporary Dataset...... icon_surprised.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Oct 09, 2007 2:26 pm
Reply with quote

Hemanth,

Quote:

If you don't want to make entry in catlg, how you will code in JCL?, I.e. KEEP(as per JCL)(means don't make entry in catlg but store it!!)

Where did you get this? I thought UNCATLG is used for not making entry into catlog (uncatlog).
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Oct 09, 2007 2:40 pm
Reply with quote

KEEP is the same as CATLG for new SMS-managed datasets.

O.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Oct 09, 2007 3:02 pm
Reply with quote

Hy Kumar,

each file (i.e. dataset) will be stored on disk (dasd),
no matter if temporary or permanent.
if you choose temporary, then the system generates an ugly
long dataset name by itself.
therefore of this name, you can actually nomore access the file.
temporary datasets are useful if you need the file in that specific
job stream only. you can PASS it with the DISP from one step to
another within your job.
but just think, it might be useful in case of any error, to look
into the file for its contents, therefore give a full qualified dataset
name... :-)

regards,

martin9
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Tue Oct 09, 2007 4:12 pm
Reply with quote

Hi All,

Quote:
Where did you get this? I thought UNCATLG is used for not making entry into catlog (uncatlog).


UNCATLG is used to uncatalog an created dataset not for new dataset, and ofcourse you can use it but system will treat it as KEEP only.

If in your case, What does KEEP mean?

Quote:
KEEP is the same as CATLG for new SMS-managed datasets.


I don't know about NEW SMS-managed datasets, Could you please direct me some link to learn NEW SMS-managed dataset?

Quote:
each file (i.e. dataset) will be stored on disk (dasd),
no matter if temporary or permanent.


Then how could you store dataset in Tape drive? Can't we store it on tape drive?

Quote:
if you choose temporary, then the system generates an ugly
long dataset name by itself.


Martin, Thanks for giving excellent answer in this regard.. Keep a top.. icon_wink.gif

Quote:
but just think, it might be useful in case of any error, to look
into the file for its contents, therefore give a full qualified dataset
name... :-)


Will it work for temporary dataset? Please justify it.. I am not aware of it if it so.......

I request you all that to read entire post from beginning and post your reply accordingly..

Thanks & Regards
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 09, 2007 4:44 pm
Reply with quote

Please please...

read
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA1B503/4.1.1?SHELF=IEA1BK44&DT=19970710121950

it explains in a very clear way what is needed to know

if the original poster had read the topic there would be
1 post and 17 follow up less :-)

the book is not at the last level, but for such a basic ( very basic )
issue is more than enough
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Oct 09, 2007 7:19 pm
Reply with quote

hy enrico,

there are always to many follow ups...
it is not necessary to know the solution,
it is just necessary to know, which book to
read. autodidactics are not given to everybody... :-)

anyway you will find everything veryx easily in the internet,
you know, i know, just let the forum also know...

saluti a tutti...

martin9
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts trying to make sense of keylists TSO/ISPF 11
Search our Forums:

Back to Top