Search code examples
datasetmainframezos

ZOS: Create first member of dataset


I'm using ZOS with ISPF 7.1

I have allocated a dataset with the following information:

enter image description here

I'm trying to create the first member of this dataset through the Edit Entry Panel (it's option 2 on the menu):

enter image description here

But I always end up with a "Member not found" message.

I know this panel can edit members that already exist, but what is the correct way to create the first member of a dataset (without copying)?


Solution

  • ISPF Edit does not like a RECFM of U (undefined). So you can't do what you are asking with the library.

    The message isn't correct, but I don't suppose people see it that often. You can report that to IBM (ask your Technical Support to raise a PMR). Then at some point in the future you'll have a warm feeling when you do the same thing and it produces an accurate message.

    If you put members into that dataset with a "copy" and then try to get a member-selection list for Edit, you'll see a message that "Browse was substituted". This is the source of your first message. Recfm U causes the switch to Browse, you can't have a "new" member in Browse, so it looks for an old one, which isn't found.

    If you genuinely want RECFM U, you're not going to be able to edit with ISPF.

    If instead, from the LRECL and BLOCKSIZE, you wanted RECFM F (fixed-length records) then you'll need to delete and reallocate the dataset with F.

    A good way to allocate a new library is to use 3.2 and firstly just list a similar existing library (leave the command area blank is how you do that, and enter the library name in the obvious place).

    Then when you A for Allocate, it will "fill in" the parameters of the library you have just listed, and you can make any necessary changes.