View previous topic :: View next topic
|
Author |
Message |
mf_user Currently Banned New User
Joined: 05 Jan 2006 Posts: 47
|
|
|
|
Hi,
We get some data from a GSAM file and we need to use certain information from this file to search a flat file and write out the records.
Is it possible to search the flat file without loading it into any internal array or table?
I am not able to make it out. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Not in any reasonable fashion. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
If I understand your question correctly - what you wanted to do is compare GSAM file (based on few fields/records) with another file.
Is this correct? If so then you can do this using SORT. |
|
Back to top |
|
|
earsha
New User
Joined: 16 Mar 2007 Posts: 17 Location: Pune
|
|
|
|
yes sort will be a better option for this |
|
Back to top |
|
|
mf_user Currently Banned New User
Joined: 05 Jan 2006 Posts: 47
|
|
|
|
Thank you.
Would you please put some examples here.
TIA. |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
If it is just to match the records from both the files and write the matched records from any file to the output, U can use SORT.
If u r using Syncsort, U can use the JOINKEYS option to do this.. |
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
however, if your requirement is to search the flat file. you may opt for loading the flat file into a working storage table (ofcourse iff the size of the file is not that large) to get it searched on the table. |
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
DFSORT allows substring searches which search whole records for strings. I have a cobol program I use too in case I want to search multiple datasets. It's pretty fast enough for my needs. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
mf_user wrote: |
We get some data from a GSAM file and we need to use certain information from this file to search a flat file and write out the records.
Is it possible to search the flat file without loading it into any internal array or table? |
Yes, but as the saying goes, "there is more than one way to skin a cat".....
mf_user wrote: |
]Would you please put some examples here.Would you please put some examples here. |
Sure, if you will think about your requitements and be a little (a lot?) more descriptive of exactly what you are looking for..... |
|
Back to top |
|
|
|