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

How to edit datasets to change secondary and primary memory


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

New User


Joined: 06 Jun 2007
Posts: 2
Location: hyderabad

PostPosted: Sat Jul 21, 2007 12:37 pm
Reply with quote

How to edit dataset (meaning that can we change secondary and primary memory of dataset).
Back to top
View user's profile Send private message
vijaynedunuri
Warnings : 1

New User


Joined: 11 Jun 2006
Posts: 10

PostPosted: Sat Jul 21, 2007 12:51 pm
Reply with quote

In my view

You can't edit the datasets and change the primary & secondary quatities.

You can change the dataset's , but you have to copy to another datasets with the help of DUP command.

Go to 3.4 option,
specify any dataset & enter,
after entering just give DUP command infront of the dataset.

Please update me if you got the exact answer.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Jul 22, 2007 9:11 am
Reply with quote

DUP is not a TSO/ISPF command.

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jul 22, 2007 9:34 am
Reply with quote

Hello,

As DUP is likely some site-specific process, you can do what you want using 3.3 - for "Allocation Options:" select 2 and specify the attributes you want. Copy the existing dataset to some other name with the attributes you spoecified in 3.3.

Then use, 3.4 and rename the original and new datasets.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jul 24, 2007 3:12 pm
Reply with quote

dick scherrer wrote:
you can do what you want using 3.3 - for "Allocation Options:" select 2 and specify the attributes you want.

Dick,

I think, here you are talking about ISPF's 3.3 option. Tried your suggestion at my site, but I do not get any "Allocation Options:", please suggest if I'm wandering somewhere else. Below is the screen which I got with 3.3 option of ISPF.

Code:
   Menu  RefList  Utilities  Help                                               
 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
                               Move/Copy Utility                               
 Option ===> __________________________________________________________________
                                                                               
  C  Copy data set or member(s)          CP Copy and print                     
  M  Move data set or member(s)          MP Move and print                     
                                                                               
 Specify "From" Data Set below, then press Enter key                           
                                                                               
 From ISPF Library:                                                             
    Project . . .               (--- Options C and CP only         ---)         
    Group . . . . ________ . . . ________ . . . ________ . . . ________         
    Type  . . . . ________                                                     
    Member  . . . ________         (Blank or pattern for member list,           
                                    "*" for all members)                       
                                                                               
 From Other Partitioned or Sequential Data Set:                                 
    Data Set Name . . . ________________________________________________________
    Volume Serial . . . ______     (If not cataloged)                           
                                                                               
 Data Set Password  . .            (If password protected)                     
                                                                               
                                                                               



Alternatevely, for the OP's requirement in ISPF MYCOPY/F33 commands are there, using which primary & secondary quantity can be altered.
Back to top
View user's profile Send private message
yogi.47eie

New User


Joined: 16 Aug 2006
Posts: 45
Location: india

PostPosted: Tue Jul 24, 2007 5:48 pm
Reply with quote

Hi dude,
in this same screen enter the source DS that you need to copy & it will navigate to second screen where you should give ur destination DS .At this time it will ask whether you want to copy the properties of source DS or allocate new attributes... at this time you can give the primary & seconday memory as per ur wish...

Thanks
R.yogaraj
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 6:27 pm
Reply with quote

Hello Anuj,

Yup, you're wandering. . . just a little icon_smile.gif

After you enter "c" for the option and the "from" dataset name and press Enter, a second screen is displayed. On that screen for "Allocation Options:" select 2 and you will have the opportunity to change the attributes to new values for the new dataset.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jul 24, 2007 6:41 pm
Reply with quote

Yup yogaraj, that I know, but couldn't get this:
Quote:
.. for "Allocation Options:" select 2 and specify the attributes you want.

& that's why the previous post. Got it now, I need to select 2 here, right ?
(usually I use 1 here)
Code:
To Data Set Options:     
   Sequential Disposition
   2  1. Mod             
      2. Old             


Still, to use F33 is rather easy I think.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jul 24, 2007 6:48 pm
Reply with quote

Ah..Dick..yeah, actually, I was searching for the string "Allocation Options:", I think you were directing towards 'Data Set Options'...right?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 7:04 pm
Reply with quote

Hello Anuj,

Quote:
After you enter "c" for the option and the "from" dataset name and press Enter, a second screen is displayed. On that screen for "Allocation Options:" select 2 and you will have the opportunity to change the attributes to new values for the new dataset.


I lied icon_redface.gif Was typing from memory and forgot that you have to hit enter after specifying the "new" dataset. The following will be displayed after you specify the "to" dataset.
Code:
                       Allocate Target Data Set                     
 Command ===>                                                       
                                                                   
 Specified data set MS.RDS.DB2OUT.NEW                               
 does not exist.                                                   
 If you wish to allocate this data set, select one of the options   
 below.                                                             
                                                                   
 Allocation Options:                                               
    1. Allocate using the attributes of:                           
       MS.RDS.DB2OUT                                               
    2. Specify allocation attributes                               
                                                                   
 /  Use existing SMS attributes for option 1                       
                                                                   
 Instructions:                                                     


This is where you select 2.

Then fill in the attributes on this screen
Code:
 ---------------------------------------------------------------------------
                             Allocate New Data Set                         
 Command ===>                                                               
                                                                    More:   
 Data Set Name  . . . : MS.RDS.DB2OUT.NEW                                   
                                                                           
 Management class . . . MCSTD          (Blank for default management class)
 Storage class  . . . . SCSTD          (Blank for default storage class)   
  Volume serial . . . . MVA320         (Blank for system default volume) **
  Device type . . . . .                (Generic unit or device address) ** 
 Data class . . . . . . DCDFAULT       (Blank for default data class)       
  Space units . . . . . TRACK          (BLKS, TRKS, CYLS, KB, MB, BYTES     
                                        or RECORDS)                         
  Average record unit                  (M, K, or U)                         
  Primary quantity  . . 2              (In above units)                     
  Secondary quantity    5              (In above units)                     
  Directory blocks  . . 0              (Zero for sequential data set) *     
  Record format . . . . FB                                                 
  Record length . . . . 4096                                               
  Block size  . . . . . 4096                                               
  Data set name type                   (LIBRARY, HFS, PDS, LARGE, BASIC, * 
                                        EXTREQ, EXTPREF or blank)           
 


Let me know if it is still not clear.
Back to top
View user's profile Send private message
yogi.47eie

New User


Joined: 16 Aug 2006
Posts: 45
Location: india

PostPosted: Wed Jul 25, 2007 4:47 pm
Reply with quote

Hi anuj,
I might have missunderstood your requirement,
Here is the another way to change the primary memory..

If you are having Advantage CA-File master
In CA-File Master ->UTILITIES - > PDS ->Update PDS allocation parameters

here you can update the primary memory & regarding the secondary i don't have any idea...


Thanks
Yogi
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Jul 25, 2007 9:15 pm
Reply with quote

Dick,

I know the option you show above, actually what I thought that there is some new ISPF version is in market which gives the 'Allocate Target Data Set' screen right away, so previous post comes in. However, Thanks for the clarification.

Quote:
If you are having Advantage CA-File master

No, we don't have Advantage CA-File master. Still, thanks for sharing, will keep this tip with me whenever be working in new shop. 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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top