Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IEHPROGM to delete a member in a partioned DSN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: IEHPROGM to delete a member in a partioned DSN
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: 1187
Location: Bangalore,India

PostPosted: Thu Jan 07, 2010 4:43 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 07, 2010 5:04 pm    Post subject:
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    Post subject: IEHPROGM to delete a member in a partioned DSN
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jan 08, 2010 1:02 am    Post subject:
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    Post subject: delete a member from a partitioned
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jan 08, 2010 1:57 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jan 08, 2010 12:33 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us