Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deleting lines from members of a PDS where a string found

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deleting lines from members of a PDS where a string found
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: 8642
Location: Back in jolly old England

PostPosted: Fri Jul 10, 2009 12:49 pm    Post subject:
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    Post subject: Reply to: Deleting lines from members of a PDS where a strin
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

Site Director


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

PostPosted: Mon Jul 13, 2009 10:05 pm    Post subject:
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 Moderator


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

PostPosted: Mon Jul 13, 2009 11:22 pm    Post subject:
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    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 VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 6 Thu Dec 14, 2017 8:18 am
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us