100% found this document useful (1 vote)
38 views6 pages

New DOC Document

Uploaded by

gaura nitai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
38 views6 pages

New DOC Document

Uploaded by

gaura nitai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

2. DEPARTMENT WISE Highest salary --- SQL QUERY – rank, dense_rank


3. 2nd Highest Rank ---- SQL QUERY -0- rank
4.

Invocation number
6.
OUPUT REQUIRED:

EMP_DEPT -- JOIN (eid) (inner)--sort(did asc)-- rollup(keydid,sum(sal) ---\


out.dname:: lookup('DEPT',in.did).dname; out.Tot_sal\:: sum,(sal);--
EMP

7.JOIN and what are the parameters you are selecting depending on join ?

8. find particular file and the pattern like abc_yyyydd.dat in unix?


find /path/to/search -type f -name 'abc_[0-9][0-9][0-9][0-9][0-9][0-9].dat'
9.find the files which is older than 180 days.
10.what do you mean by dynamic dml? Pdl generating dml dynamical by metaprogramming….

11.what do you mean conditional dml? Discussed …[used if no of col are different for header, trailer n
detail data]

record
// Enter your record definition here
string(",") kind;
if (kind =='H')
begin
record
string(",") tr_id;
string(",") name;
decimal("\r\n") cnt;
end H;
end
if (kind == 'B')
begin
record
string(",") ITEM_NAME;
decimal(",") quantity;
decimal("\r\n") price;
end D;
end

if (kind == 'T')
begin
record
decimal(",") total_quantity;
decimal("\r\n") total_price;
end T;
end
end
12.Lookup and its types? Refer 62 batch recordings
13.What IS EME? Refer 62 batch recordings
14.What is the command to know how many graphs are locked by your user ?
Air lock show –user uid
15.Types of Lookup. Static n dynamic
16.what happens when we execute a graph from GDE?
Explain all param resolution

17.delete nth space in 10th line in UNIX.


18.count distinct words in a file in unix and graph
sort -u file.txt | tr -s '\n' ' ' | wc -w
19.2 stage routing
Using two-stage routing
When an all-to-all flow connects components with layouts containing a large numbers of partitions,
the Co>Operating System uses many networking resources. If the number of partitions in the source
and destination components is N, an all-to-all flow uses resources proportional to N to the 2nd power.
To save network resources, you can mark an all-to-all flow as using two-stage routing. With two-stage
routing, the all-to-all flow uses only Math equation: two times N times the square root of N.
resources.
For example, an all-to-all flow with 25 partitions uses 25*25 = 625 resources, but with two-stage
routing uses only 2*25*5 = 250 resources.
bulletNOTE: Two-stage routing is available only if the number of partitions of the source and
destination components are the same. The source component must be one of the following:
bullet Partition by Key

bullet Partition by Range

bullet Partition by Round Robin

bullet Partition by DB2EEE

bullet Partition by Expression

Use two-stage routing if the all-to-all flows in a graph have more than 30 partitions. When you set
two-stage routing, the flow symbol changes from a pattern with one X in the middle to a pattern with
two Xs in the middle.
Setting two-stage routing
To set two-stage routing, right-click an all-to-all flow and select Two-stage Routing from the shortcut
menu. A checkmark means two-stage routing is selected. The flow symbol in the graph changes from
a pattern with one X in the middle Icon of a flow with one X. to a pattern with two Xs in the middle
Icon of a flow with two Xs in the middle..
--------------------------------------------
20.

70 records are of city mumbai----generate files for 50 records as mumbai_1, and next as mumbai_2

30 records are of city chennai----generate file for 30 records as chennai_1

80 are of city pune----generate files for 50 records as pune _1 and rest as pune_2

i/p – PBE 3way—p0(m),p1©,p2(p)---PBR( 0 to 50) (6way)--- p0(Mumbai_1),p1(mum_2) ,


p2(ch_1),p3(ch_2), p4(pune_1),p5(pune_2)

21. 7. sql loader to load file to table . stored_proc sql script for fast load from file to table in DB like
teradata
22. what is sftp, put and get methods..
ENV team use for migrating files from one server to anothere
23. data integration in Abinitio
departitioning comp
24. What is .profile in Ab Initio
Contain all alias names, ab_home where the Abinitio installed and all env level parameters

25. What is Abinitiorc file, contain encrypted pwd and EME paths of Dev eme, test or QA EME , prod
eme
26. What are the parameters in abinitiorc file .
AB_HOME @ release213 : /usr/local/abinitio-V2-13-1
AB_DISPLAY_NAME @ release213 : Co>Operating System 2.13
AB_DESCRIPTION @ release213 : Use for running graphs in project X

AB_EME_REPOSITORIES : deveme testeme

AB_AIR_ROOT @ deveme : //unixhost/disk1/data/dev/eme


27. What is . ./ ab* in Ab Initio its unix terminology come a step back

28. What is the difference between project.pset and sandbox.pset .. proj.pset refer to/point to EME
proj …
SANDBOX.pset point to dev sandbox path (on local system of dev)
29. How to check the different version of the graph and find the latest version of the graph in EME.
Air object –version graph.mp
30. How to connect to eme? By chectkout .. by .abinitorc
31. Assume there is scenario which is having two file one is having mfs file with a huge data and
another is having serial file and we need to connect to the join and need to extract some fields so
what is your best approach in this case?

First mfs another serial file is broadcast


8way mfs p0, p1,p2

Serial BROADCAST p0, p1

32. Assume there is scenario as below


If you have input fie that is connected to reformat and all the layout is 4way and your lookup is serial
file . now can you do look up function on serial file or Can you do serial lookup in a multi file process
system function on serial file

Ans - Yes WHETHER LOOKUP IS SERIAL OR MULTI FUNCTION WORKS ON BOTH

33.

OUTPUT:

We required the unique data from above records.


out::refomrmat(in)=
begin

let string("") c1= in.city1;


let string("") c2= in.city2;

if(string_compare(in.city1,in.city2) ==1)
begin
c1= in.city2;
c2=in.city1;
end

else
begin
c1=in.city1;
c2=in.city2
end

out.city1 :: c1;
out.city::c2;
end
------------------------------------------
out::refomrmat(in)=
begin

let string("") c1= in.city1;


let string("") c2= in.city2;
let string("") [] vec = [vector "",""];

vector_append(vec, in.city1);
vector_append(vec, in.city2); // [vector 'hyd', 'bng'];

vector_sort(vec);

out.city1 :: vec[0];
out.city[2]:: vec[1];
end
----------------------

34.

o/p
name class tot_score rank
abc 1 40 7

select * from ( select tablename.*, rank()over (partittion by class order by total_score desc)as rank
from tablename)where rank=7;
i/p—sort (class, total_score desc) – scan (rank++) –(output_sel rank==7)-- o/p

You might also like