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

Deleting lines from members of a PDS where a string found


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Fri Jul 10, 2009 12:30 pm
Reply with quote

Hi all,

I have a requirement where in, a PDS contains 100s of members.
These members could contain a word "sajjan" in any position.

I want to delete the line which contains "sajjan" from every member of the PDS.

Please help me if this is possible via JCL.

Warning: Do not post the same question multiple times
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jul 10, 2009 12:49 pm
Reply with quote

Sure, which program would you like the JCL to execute.

/RANT ON
Once more let us clarify exactly what JCL is.

it is Job Control Language.

By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.

JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.
/RANT OFF
Back to top
View user's profile Send private message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Mon Jul 13, 2009 3:34 pm
Reply with quote

I think this can be done via DFSORT or REXX, can some one help me out with this??
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 13, 2009 10:05 pm
Reply with quote

Hello,

Sort products don't (yet) have features to navigate partioned datasets. . .

You need to search in the rexx part of the forum as there are multiple examples of code that processes members of a pds.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Jul 13, 2009 11:22 pm
Reply with quote

Quote:
Sort products don't (yet) have features to navigate partioned datasets. . .


To clarify:

Sort products can operate on one member of a partititioned data set treated as a sequential data set -> pds(member)

Sort products cannot operate on the members of a partitioned data set based on the dsname of the pds.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top