a member in a pds

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

a member in a pds

Postby karthik017 » Thu Oct 09, 2008 1:18 pm

Hi im creating a panel to find the presence of a pds and its member.1.The “DATASET NAME” should be an existing PDS. If not present, system should prompt the user to enter an existing PDS(i did it).
2.If the given “MEMBER NAME” not present in the PDS, create a new member with the given name.So tell me how to do the 2nd one?
Posts: 1
Joined: Thu Oct 09, 2008 1:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: a member in a pds


Re: a member in a pds

Postby MrSpock » Thu Oct 09, 2008 2:41 pm

Since you're using ISPF panels, I have to presume that you're familiar with and comfortable using ISPF Services.

I'd use the following Library Management services:

User avatar
Global moderator
Posts: 811
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: a member in a pds

Postby Gilles » Fri Oct 31, 2008 8:59 pm

You can also use the EDIT command. If your member exists, it'll open it. If it doesn't, you'll be presented with an empty member with the new name.

DSNAME = whatever dataset name
MEMBER = whatever member name
"ISPEXEC EDIT DATASET('" || DSNAME || "(" || MEMBER || ")')"
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Has thanked: 0 time
Been thanked: 0 time

Return to TSO & ISPF


  • Related topics
    Last post