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 strings and lines

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deleting strings and lines
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu May 21, 2009 6:49 pm    Post subject: Reply to: Deleting strings and lines
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu May 21, 2009 6:57 pm    Post subject: Reply to: Deleting strings and lines
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 21, 2009 7:27 pm    Post subject:
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    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 Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm

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