how to set dataset's attribute?



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

how to set dataset's attribute?

Postby marshall25 » Wed May 29, 2013 7:38 am

hi all,

i want to create a PS file FILE01 with length 80, and i want from columm 1 to 10 have default value and fields be protected, i mean if i insert one record, the columm 1 to 10 will auto have default value(REC HDR), the edit parts will start columm 11.

how can i to create such dataset?

example:

=COLS> ----+----1----+----2----+----3----+----4----+----5----+----
000001 REC HDR   RECORD01                                         
000002 REC HDR   RECORD02                                         
000003 REC HDR   RECORD03                                         
000004 REC HDR   RECORD04                                         
marshall25
 
Posts: 26
Joined: Mon Jun 20, 2011 9:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to set dataset's attribute?

Postby steve-myers » Wed May 29, 2013 7:53 am

The operating system base function will allocate a data set, but except for an empty PDS directory, it will not put anything into the data set. You need a program of some sort to put something into the data set.

The only program I can think of that might be able to initialize a data set in the manner you just described might be the IEBDG utility. Unfortunately, in almost 45 years, I've never attempted to use it, so I can't help you beyond this. It is documented in DFSMSdfp Utilities for your z/OS release. I rather doubt IEBDG has been changed in any meaningful fashion in more than 40 years, so almost any Utilities manual you can find should be adequate.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: how to set dataset's attribute?

Postby Robert Sample » Wed May 29, 2013 8:13 am

how can i to create such dataset?
You cannot.

You need to find the TSO/ISPF bookshelf manual ISPF Edit and Edit Macros which will allow you to use TSO/ISPF to accomplish some of what you want -- look at the MASK facility. However, ISPF Edit works on a data set -- you don't get to determine that the first 10 bytes are protected (and the edit will start with byte 1), although you can use BNDS to limit the impact of commands.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: how to set dataset's attribute?

Postby NicC » Wed May 29, 2013 5:43 pm

you can also add a tab at cc10 so that the cursor will be placed at cc11 - at least, I suspect that is why my cursor goes to cc7 on a newline. It can be abore though as I then have to manually place it where I want.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: how to set dataset's attribute?

Postby Ed Goodman » Wed May 29, 2013 9:13 pm

If this is being used later, can you let the edit start in column 1, then ADD the fixed value to the front in a separate step?
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post