How to delete a member with an utility, passing memb as parm

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
luija_ie
Member
Posts: 2
Joined: Fri Jan 11, 2013 4:19 am
Location: Gdl, Mexico

How to delete a member with an utility, passing memb as parm

Post by luija_ie » Fri Jan 11, 2013 4:25 am

hi there!

I need to delete a member based on a previous step but i have to do this 5 times in different PDS, all with the same Member inside, so i have to pass the parameter to the step from the top,

How can i get it, i tried too many times and the result is not what i need, some times i delete the entire PDS, and I dont want so, :(

the Member i have to delete is like this

DSN=XXXXXX.XXXXXX.XX.XXXXXX(&parameter)

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Fri Jan 11, 2013 6:10 am

Wouldn't a simple, normal TSO PDS member delete work?

Code: Select all

//STEPX EXEC PGM=IKJEFT01,
// PARM='DELETE ''XXXXXX.XXXXXX.XX.XXXXXX(&parameter)'''
//SYSTSPRT DD SYSOUT=*"
//SYSTSIN DD DUMMY

luija_ie
Member
Posts: 2
Joined: Fri Jan 11, 2013 4:19 am
Location: Gdl, Mexico

GREAT, I don't know what I've done without your help.

Post by luija_ie » Fri Jan 11, 2013 9:54 pm

THX Really Helpful, i was tryin' with IEBgener, and nothing THX. :D

Just want to know what is the last pair of ( ' ) for?

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Jan 11, 2013 10:44 pm

To "balance" the quotes in the statement . . .
Have a good one

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sat Jan 12, 2013 8:55 pm

Why do you think that IEBGENER would delete a PDS member - is it mentioned in the IEBGENER manual? I doubt it as IEBGENER is a copy/edit utility.
Regards
Nic

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others