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
 

 

To make a dataset to be stored permanently.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To make a dataset to be stored permanently.
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: 1288
Location: Chennai, India

PostPosted: Thu Sep 27, 2007 4:17 pm    Post subject: Reply to: To make a dataset to be stored permanently.
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

Senior Member


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

PostPosted: Thu Sep 27, 2007 4:30 pm    Post subject: Re: To make a dataset to be stored permanently.
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: 1439
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 4:32 pm    Post subject:
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    Post subject: Reply to: To make a dataset to be stored permanently.
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    Post subject:
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    Post subject: Reply to: To make a dataset to be stored permanently.
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

Senior Member


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

PostPosted: Thu Sep 27, 2007 7:09 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Sep 27, 2007 7:22 pm    Post subject: Re: Reply to: To make a dataset to be stored permanently.
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: 1439
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 7:47 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 27, 2007 9:32 pm    Post subject:
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: Chennai

PostPosted: Fri Sep 28, 2007 4:34 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Sep 28, 2007 7:04 pm    Post subject:
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: 287
Location: Basel, Switzerland

PostPosted: Fri Sep 28, 2007 8:01 pm    Post subject:
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: Chennai

PostPosted: Tue Oct 09, 2007 1:52 pm    Post subject: Reply to: To make a dataset to be stored permanently.
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: 1439
Location: Bangalore,India

PostPosted: Tue Oct 09, 2007 2:26 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Oct 09, 2007 2:40 pm    Post subject:
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: 287
Location: Basel, Switzerland

PostPosted: Tue Oct 09, 2007 3:02 pm    Post subject:
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: Chennai

PostPosted: Tue Oct 09, 2007 4:12 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Oct 09, 2007 4:44 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


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