New DOC Document
New DOC Document
Invocation number
6.
OUPUT REQUIRED:
7.JOIN and what are the parameters you are selecting depending on join ?
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
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
80 are of city pune----generate files for 50 records as pune _1 and rest as 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
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?
33.
OUTPUT:
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
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