GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Abinitio
Go To First  |  Previous Question  |  Next Question 
 Abinitio  |  Question 128 of 196    Print  
how to pass i/p file name as parameter while running a graph by wrapper(back end ) ?

  
Total Answers and Comments: 1 Last Update: September 08, 2006     Asked by: Nilanjan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 08, 2006 14:57:44   #1  
Kannan        

RE: how to pass i/p file name as parameter while runni...

Hi All

You can pass the i/p file name as parameter using Graph level parameter which is for particularly first graph if this graph only using that input file and another parameter file for another graph. Here i have given the wrapper if you are using graph level script.

------------------------------------------------------------------------------

#!/bin/ksh

#Running the set up script on enviornment
typeset PROJ_DIR $(cd $(dirname $0)/..; pwd)
. $PROJ_DIR/ab_project_setup.ksh $PROJ_DIR

#Exporting the script parameter1 to INPUT_FILE_NAME
if [ $# -ne 2 ];
then
INPUT_FILE_PARAMETER_1 $1
INPUT_FILE_PARAMETER_2 $2

# This grpah is using the input file
cd $AI_RUN
./my_graph1.ksh $INPUT_FILE_PARAMETER_1

# This graph also is using the input file.
./my_graph2.ksh $INPUT_FILE_PARAMETER_2

exit 0;
else
echo Insufficient parameters
exit 1;
fi
------------------------------------------------------------------------------

Another way You can also use the Sandbox Parameter for if you are uing that input file more than one times in project then you have to use this option. Firstly you have create a Parameter in Sandbox then set the properies alike scope must be set as formal . and the value of parameter value must be exported before running this graph script in wrapper script.

-------------------------------------

#!/bin/ksh

#Running the set up script on enviornment
typeset PROJ_DIR $(cd $(dirname $0)/..; pwd)
. $PROJ_DIR/ab_project_setup.ksh $PROJ_DIR

#Exporting the script parameter1 to INPUT_FILE_NAME
export INPUT_FILE_NAME $1

# This grpah is using the input file
cd $AI_RUN
./my_graph1.ksh

# This graph also is using the input file.
./my_graph2.ksh

exit 0;

--------------------------------------------------------------------------

Hopefulyy this would help to understand with scripts.

Thanks

Kannan.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : .dbc file basically helps abinitio coops to connect to database. It includes all the required database parameter and other default value respective to it. you can modify them.However .cfg is file is use set up some temporary environment for a particular ...

Latest Answer : In addition to the above mentioned cases we can also include some more like:1. If sort component is used and the sort keys are same for the next sort component which follows after 2 or 3 components, then instead of using sort component again it is preferable ...

Latest Answer : This is a tricky question, number of component in a graph has nothing to do with the level of knowledge a person has. On the contrary, a proper standardized and modular parametric approach will reduce the number of components to a very few. In a well ...

What is the t-sql command element you would use to place a logical object (table or index) on a specific physical file (file group).



When running a stored procedure definition script how would you guarantee the definition could be "rolled back" in the event of problems.

Latest Answer : A lookup is a component of abinitio graph where we can store data and retrieve it by using a key parameter.A lookup file is the physical file where the data for the lookup is stored. ...

To run a graph infinitely, the end script in the graph should call the .ksh file of the graph. Thus if the name of the graph is abc.mp then in the end script of the graph there should be a call to abc.ksh. 
Latest Answer : You can use "Continious flow" components for this ...
Read Answers (3) | Asked by : Mithun

Latest Answer : try "m_db test myfile.dbc" ...
Read Answers (1) | Asked by : Gour


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape