How to extract job parameters from a file?

Questions by ramamulas

Showing Answers 1 - 15 of 15 Answers

venkatpaladugu

  • Nov 15th, 2011
 

We can cal parameters from the file through user variables

glaciya

  • Dec 13th, 2011
 

Could we use dsjob command on linux or unix plantform to achive the activity of extacting parameters from a job?

  Was this answer useful?  Yes

Write a server job routine that takes input as the file and reads the parameters from it. If the file contains more than one parameter each in a separate line, the your routine should concatenate them into a single dynamic array.
Then call this routine in a User variable activity stage and collect the dynamic array into a variable. Attach this stage to another User variable activity stage and used Field function to split the array into multiple values and assign each to a new variable. Now join a Job activity stage and call the job that needs these parameters and assign the variables created in the previous User variable activity stage to respective job parameters.

  Was this answer useful?  Yes

karthick

  • May 30th, 2014
 

parameter file will have comma delimiter.
use cat file1.txt |cut -d, -f1| tr -d "
" command to extract the first field ...
use execute command activity for extracting all the parameter. then finally pass the value to actual job.

  Was this answer useful?  Yes

Anil.K.Thodeti

  • Mar 31st, 2017
 

cat abc.txt | tr
, | sed s/,$//(Exec command stage), Start Loop (pass this output $CommandOutput), and then send this into a job, and then end loop at the end

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions