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
 

 

file matching on partial string

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
mihirjana

New User


Joined: 25 Jul 2005
Posts: 2

PostPosted: Mon Jul 25, 2005 9:54 am    Post subject: file matching on partial string
Reply with quote

My problem definition is:
I have two files.
Customer file: It has two fields. Customer name and customer no
Customer name has no spaces in between
Customer name is x(25) and cusomer no is s9(6).

Check file: It has 2 fields.

Check no 9(10).
Check alpha x(10). It has no spaces in between.

Let's say,
File A has below records
zabc?efg 12345
@kjlabcmnp 1234

File B

999 abc
888 efg

I want to find if my check alpha entire string is present anywhere in the customer name field

If that is present then I want my output to be like..

999 abc zabc?efg 12345
999 abc @kjlabcmnp 1234
888 efg zabc?efg 12345

I tried doing this through sequential processing and doing the search of substring.
But File A and File B both contains approximately 5 millions of records.
So my job takes around 24 hous which is not feasibe at all.

Let me know how I can do this with reasonable performance.

Thanks,
Mihir
Back to top
View user's profile Send private message

shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Mon Jul 25, 2005 4:10 pm    Post subject:
Reply with quote

Quote:
sequential processing and doing the search of substring.


You can use INSPECT to make a search for the substring.
How did you made your search? Could you please let us know.
Back to top
View user's profile Send private message
mihirjana

New User


Joined: 25 Jul 2005
Posts: 2

PostPosted: Mon Jul 25, 2005 11:12 pm    Post subject: Re: file matching on partial string
Reply with quote

Hi,
The problem is not with the search.
I have tried using different logic involving, inspect, string etc.
My programms works fine.
But the approach with the cobol inspect etc is not feasible as 5 millins records are present in both files which leads to 24 hours of job execution.

Thanks,
Mihir
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Tue Jul 26, 2005 8:29 am    Post subject:
Reply with quote

Mihir,
Honestly ur logic is still unclear,bcos of the 3 records in ur output file with 2 records in each of the Input file. INSPECT can be very expensive for complex string operations. So can you show me the code that u tried with out the INSPECT Function.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 1 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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