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

Deleting strings and lines


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

New User


Joined: 30 Oct 2006
Posts: 6
Location: South Africa

PostPosted: Thu May 21, 2009 6:34 pm
Reply with quote

Hi there,

I need a JCL where I can just keep the hlq, cartridges and then delete all duplicate hlq and cartridges.

Anybody that can help me??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 21, 2009 6:49 pm
Reply with quote

what have You tried so far ??
Back to top
View user's profile Send private message
Heinrichvg

New User


Joined: 30 Oct 2006
Posts: 6
Location: South Africa

PostPosted: Thu May 21, 2009 6:50 pm
Reply with quote

We have tried Rexx, but it doesn't seem to work so I thought that JCL might be a better option
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 21, 2009 6:57 pm
Reply with quote

it does not work, is a bit generic...

please use a better terminology ...
remember JCL is used to setup the environment and execute programs...
alone it does not carry on any processing

also given the richness of rexx I find odd that You were not able to succeed

sadly, the requirement was stated in a rather obscure way

what does the input look like, what should the output look like?
quite often the solution is made easier by a clear understanding of the requirements
Back to top
View user's profile Send private message
Heinrichvg

New User


Joined: 30 Oct 2006
Posts: 6
Location: South Africa

PostPosted: Thu May 21, 2009 7:09 pm
Reply with quote

FTOUPD1.PPRD.COPX(FTO02016)

This is my Dataset and member

this is what is in the member

C27255 IN NO ADR.BKUPD
C27255 IN NO ADR.BKUPD

But what I need in the member is only this

C27255 IN NO ADR

As you can see in the first one I have a duplicate and need that one taken out.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 21, 2009 7:27 pm
Reply with quote

Use your SORT product, speecify the LRECL as the key and specify SUM FIELDS=NONE to remove duplicates.
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 Deleting a Tape file JCL & VSAM 14
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top