Reputation: 11
Hello Datastage developers, I'm pretty new to the tool. I'm trying to develop a parallel job with Oracle stage. I need the database parameters to be populated at run time. I see there are jobs designed for our project which take these parameters(DB name, userID, password, schema) from a file located on the ETL server. I'm unable to find how the job hits that file and gets the values. I hope I've put the question clearly. Can you guide me step by step how to get the parameters from a file?
Upvotes: 1
Views: 5860
Reputation: 21
When a file based parameter set is used, the parameter set picks up the contents of the file at the time the job is started. This provides excellent flexibility as long job could manipulate a parameter set file, and leave new parameters for a subsequent job. The key is that the parameters are not compiled into the job or the parameter set. The following steps detail the creation and use of file based parameter sets.
(Alphanumeric and Underscore characters only. No spaces.)
For example: my_file_parm_set
In the Parameters tab create the parameters and defaults
In the Values tab put the name of the file in the "Value File Name" column.
Specify file name only. No path component Use alpha numeric characters etc. No spaces.
For example: parm_file.txt
In the same row, list values for each parameter defined in the Parameters tab. The table should look like this:
Click OK and save the the parameter set.
At this point the parameter set file should have been created using the following system:
Projects/ParameterSets//
In our example the file name would be:InformationServer\Server\Projects\foo2\ParameterSets\my_file_parm_set\parm_file.txt
The contents of the file looks like this:
In the job, navigate to Edit > Job Properties and select the Parameters tab.
Click Add Parameter Set and select the newly created parameter set:
=============== Create the Sequence Job ===========================
Click OK and save the sequence.
Upvotes: 1