What is AB_LOCAL expression where do you use it in ab-
initio?

Answer Posted / prasad setti

If you use an SQL SELECT statement to specify the source
for Input Table, and if the statement involves a complex
query or a join of two or more tables in an unload, Input
Table may be unable to determine the best way to run the
query in parallel. In such cases, the GDE may return an
error message suggesting you use ABLOCAL(tablename) in the
SELECT statement to tell Input Table which table to use as
the basis for the parallel unload.

To do this, you would put an ABLOCAL(tablename) in the
appropriate place in the WHERE clause in the SELECT
statement, and specify the name of the "driving table"
(often the largest table, but see below) as a single
argument.

When you run the graph, Input Table will replace the
expression "ABLOCAL(tablename)" with the appropriate
parallel query condition for that table.

For example, suppose you want to join two tables-
customer_info and acct_type-and customer_info is the
driving table. You would code the SELECT statement as
follows:

select * from acct_type, customer_info

where ABLOCAL(customer_info) and

customer_info.acctid = acct_type.id

Note that when using an alias for a table, you must tell
ABLOCAL(tablename) the alias name as well.

select * from acct_type, customer_info custinfo

where ABLOCAL(customer_info custinfo) and

custinfo.acctid = acct_type.id

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a rollup component? Explain about it.

680


What are the co> operating system’s assorted library of integrated components?

654


What is local and formal parameter?

772


Can you explain data flow graph with an example?

714


What are the key elements of a data processing system?

692






What is the difference between look-up file and look-up, with a relevant example?

702


Can you explain the co>operating system’s processing model?

611


Mention what are the different types of parallelism used in abinitio?

592


How to process records in batches like 1-20 records in first execution and 21-40 records in second run.. so on

470


When we should use 'jobid' for commit table (Output table component?? How to use in abinitio graph?

1912


Mention some file extensions which are used in abinitio?

618


What does de-partition mean in abinitio?

726


What is the difference between sandbox and EME?

684


What is the ab initio business rules environment (bre)?

687


How would you find out whether a sql query is using the indices you expect?

604