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

Dynamic search and write


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 44
Location: India

PostPosted: Wed Nov 19, 2014 3:33 am
Reply with quote

Hi All,

I have the below requirement:

INPUT:

PROCEDURE AAA WAS EXPANDED USING PRIVATE LIBRARY AAA.BBB.CCC
PROCEDURE BBBCCDD WAS EXPANDED USING PRIVATE LIBRARY DDD.EEE.FFF
PROCEDURE ZZZYYD WAS EXPANDED USING PRIVATE LIBRARY GGG.HHH.III
PROCEDURE PROCLIB WAS EXPANDED USING PRIVATE LIBRARY JJJ.KKK.LLL
PROCEDURE WDLYCREF WAS EXPANDED USING PRIVATE LIBRARY MMM.NNN.OOO



I have got this input from job log using below

INCLUDE COND=(1,130,SS,EQ,C'EXPANDED USING PRIVATE LIBRARY ')



But OUTPUT I need is (Only libraries) :

AAA.BBB.CCC
DDD.EEE.FFF
GGG.HHH.III
JJJ.KKK.LLL
MMM.NNN.OOO



Since the input starting position of libraries is not at a particular position I was unable to use OUTREC.

But idea is writing library names after word PRIVATE LIBRARY "start positon of library"



Please help.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Nov 19, 2014 5:05 am
Reply with quote

Look at PARSE and examples of its use.
Back to top
View user's profile Send private message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 44
Location: India

PostPosted: Fri Nov 21, 2014 10:01 pm
Reply with quote

Thanks a Million Bill :-) That hint was helpful and got learnt from below link mainframesf1.wordpress.com/2012/03/28/sort-parse-reformat-variable-fields/


But please help me to accomplish the same with ICETOOL.
Because we don't have DFSORT we have SYNCSORT only.

Rexx will also help me.

Thanks in advance.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Nov 21, 2014 10:26 pm
Reply with quote

If you have SyncSORT, please don't post in the DFSORT part of the forum.

SyncSORT supports PARSE, so you don't need to use SyncTOOL (aliased to ICETOOL).

Just STARTAFT C'LIBRARY ' FIXLEN=44 should do you.
Back to top
View user's profile Send private message
Arunkumar Chandrasekaran

New User


Joined: 01 Jun 2010
Posts: 63
Location: India

PostPosted: Sat Nov 22, 2014 1:49 pm
Reply with quote

Hi Bill,

just curious to know. Is there so much difference between DFSORT and SyncSort to move to JCL category.?

In fact last 4 years I was solving my SORT requests with the help of DFSORT-Getting started manual without the knowledge of My Site using SyncSort.
I came to know that only thru one of the recent post in this forum.

Thing is even I was using SynCsort, DFSORT manual worked great for me
except I faced few issues in TRAN=HEX and BITS function.So I thought both are almost same in function though they are entirely two different products.

Is it wrong and is there any vast difference between them to move to JCL category???


Thanks.
Arun
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 -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top