BookmarkSubscribeRSS Feed
deleted_user
Not applicable
HI TEAM,

YOUR customer department complies a list of UK addresses ( approx 50) in to XL spreed sheets every day. T he address is held in a single free format field, it always includes the postcode which is always the last item in the field.

Your task is to find out if the company has done any business with anyone at any of these address.

This can be done by using sas code to search the POLICY main file and ACCOUNT EXTRACT file.The search needs to be run over night because the file are ex termly large. ( over 2 millions).records in one case.

The search XL spreed sheet Will always be ready by 4 pm and Ty need have the results by 9 am by following day. The company treads as 5 different brands and there is is POLICY AND ACCOUNT EXTRACT file for each brand. The POLICY AND ACCOUNTS EXTRACT files hold the address in 2 fields. address 1 and post code .

The POLICY file is the production main file and its updated every night. the ACCOUNT EXTRACT is derived data and it is updated every week.

The results need to be access by all members of the customers department (about 30 in all).and it is expected that ty will form a key part of the operational process.

PLEASE LET ME KNOW HOW CAN I DO THAT PLEASE SEND ME SAMPLE SYNTAX.

THANKS,
CHANDRA.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This is not an ODS or BASE Reporting question (PRINT, REPORT, TABULATE).

For more help with this particular problem, your best bet is to read the documentation on SAS functions (such as SUBSTR or SCAN or REVERSE), that allow you to manipulate strings. And then to read the documentation on joining tables together. There are several ways to do table lookups and the most efficient way will depend partly on how the data are stored in the extremely big file. How you access the Excel files will depend on the software that is licensed at the site.

To contact Tech Support, go to http://support.sas.com and in the left hand navigation pane, look for the link entitled "Submit a Problem". (If you also need help with the WAKEUP function or writing a script to execute a SAS program, Tech Support can help you with that, depending on your operating system.)

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 593 views
  • 0 likes
  • 2 in conversation