View previous topic :: View next topic
|
Author |
Message |
pmn2cdac
New User
Joined: 23 Dec 2007 Posts: 27 Location: Bangalore
|
|
|
|
Hi,
I will be getting different GDG generations on a daily basis ( A max of 20 to 25 generations). My objective is to search for 10 different strings ( even more as per the requiement) across all the GDG generations and to find out the GDG generation that is having any/all of the search strings.
My output should typically contain the search string Vs the GDG generation mapping.
Can any one help me with this JCL? Please let me if you need any related details. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
pmn2cdac wrote: |
Can any one help me with this JCL? Please let me if you need any related details. |
JCL is very general term from this query's point of view, using File-Aid...or SORT, what product solution you are searchig for...?
With File-Aid, try this-
Code: |
//FILEAID EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//DD01 DD DSN=I.am.gdg.base,
// DISP=SHR
//SYSIN DD *
$$DD01 LIST OUT=0,
IF=(001,EQ,C'string to search')
/* |
If you are looking for SORT solution then please search the forum for Skolusu's solutions, he has put the reply on board for this type of request some days back, good luck.. |
|
Back to top |
|
|
pmn2cdac
New User
Joined: 23 Dec 2007 Posts: 27 Location: Bangalore
|
|
|
|
Hi , Thanks for your quick reply. But I can not use this as I don't have FILEAID .Could any one help me with any alternate solution.
Here is what I can further give details about..
sample data:
Input files: ( GDG generations):
I.AM.A.GDG.XXXXXV00
I.AM.A.GDG.XXXXXV01
I.AM.A.GDG.XXXXXV02
I.AM.A.GDG.XXXXXV03....so on till 25 generations.
I have to search for different strings among all the above mentioned generations just like below.
'GHJdasdasdasdsad23242'
'ASadfghfghfasdsad23242'
'ljljkdsdfsfs23242'
The search string can also be of different length.
Expected OUTPUT:
'GHJdasdasdasdsad23242' is present on I.AM.A.GDG.XXXXXV02
'ASadfghfghfasdsad23242' is present on I.AM.A.GDG.XXXXXV04
'ljljkdsdfsfs23242' is present on I.AM.A.GDG.XXXXXV20. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Thanks Gerry, somtimes I think who is rather in need..who should search first, even after getting a hint...
Quote: |
If you are looking for SORT solution then please search the forum for Skolusu's solutions, he has put the reply on board for this type of request some days back |
Amen.. |
|
Back to top |
|
|
pmn2cdac
New User
Joined: 23 Dec 2007 Posts: 27 Location: Bangalore
|
|
|
|
Thanks a lot guys!!!. The solution worked for me!!!. |
|
Back to top |
|
|
|