Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dynamic search and write

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 37
Location: India

PostPosted: Wed Nov 19, 2014 3:33 am    Post subject: Dynamic search and write
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Nov 19, 2014 5:05 am    Post subject: Reply to: Dynamic search and write
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: 37
Location: India

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

Thanks a Million Bill :-) That hint was helpful and got learnt from below link https://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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Fri Nov 21, 2014 10:26 pm    Post subject: Reply to: Dynamic search and write
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: 61
Location: India

PostPosted: Sat Nov 22, 2014 1:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us