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

IEHPROGM to delete a member in a partioned DSN


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Thu Jan 07, 2010 4:35 pm
Reply with quote

Hi, i want to delete a member in a partioned dsn. Using this program i can scratch the member. The problem happens when the dsn is too long and all the line passes the72 column.
I tried to divided the command but it's not possible.
Is there other way?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Jan 07, 2010 4:43 pm
Reply with quote

Hello Vasco,

From the FM

Quote:
Utility control statements are coded on cards or as online input and are contained in columns 1 through 71. A statement that exceeds 71 characters must be continued on one or more additional records. A nonblank character must be placed in column 72 to indicate continuation.


If it still fails please provide us the code & error message
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jan 07, 2010 5:04 pm
Reply with quote

Why not use good old IDCAMS, IEHPROGM main use is for non SMS datasets these days.
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Jan 08, 2010 12:52 am
Reply with quote

many thanks Guptae, i did, but doesn't work, please see the attach. Regards.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 08, 2010 1:02 am
Reply with quote

First, not everyone is allowed to download attachments. Please repost your output using BBcode instead -- which also, unlike Word, preserves spacing so we can verify exactly what IEHPROGM is indicating.

Second, have you verified with your site support group that VOL=3390 is supported at your site for IEHPROGM?
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Jan 08, 2010 1:38 am
Reply with quote

Sorry for the attachments (was the first and the last).
Could, anyone, show me the way of delete a member in a partitioned?
Many thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 08, 2010 1:57 am
Reply with quote

Code:
//STEP1    EXEC PGM=IEHPROGM,REGION=0M
//SYSPRINT DD   SYSOUT=*
//DD01     DD   DISP=SHR,DSN=TTSSRS0.LONG.DATASET.NAME.PDS
//SYSIN    DD   *
  SCRATCH VOL=3390=STRS10,DSNAME=TTSSRS0.LONG.DATASET.NAME.PDS,        X
               MEMBER=TEST2
/*
returns results of
Code:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
1SYSTEM SUPPORT UTILITIES ---- IEHPROGM
-
   SCRATCH VOL=3390=STRS10,DSNAME=TTSSRS0.LONG.DATASET.NAME.PDS,        X
                MEMBER=TEST2
 NORMAL END OF TASK RETURNED FROM SCRATCH
-
 UTILITY END
******************************** Bottom of Data ********************************
so use IEHPROGM for your task.
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Jan 08, 2010 3:10 am
Reply with quote

Ok, it does work. Many thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jan 08, 2010 12:33 pm
Reply with quote

As previously suggested, and IMHO an easier option
Code:
//DCOLLECT EXEC PGM=IDCAMS                         
//SYSPRINT DD SYSOUT=*                             
//SYSIN    DD *                                     
 DELETE PDS name(member) NONVSAM   
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
Search our Forums:

Back to Top