The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Im trying to store the output $DB into P.P_DB

SOLVED
Go to solution
Highlighted
davecal
Occasional Advisor

Im trying to store the output $DB into P.P_DB

Hi Guys,

 

Can anyone help me.

 

Im trying to store the output $DB into P.P_DB

 

set DB = `grep /files/csv database.csv | awk -F'[:,]' ' { print $2 } '`  

echo $DB  

ksc_store P.P_DB = $DB  

echo [P.P_DB]  

 

Thanks Dave

2 REPLIES
Jim Esler
Honored Contributor
Solution

Re: Im trying to store the output $DB into P.P_DB

$DB is a shell variable and is only accessible by shell commands. ksc_store is a PPM command and is not executed by the shell. In order to save the output of the last shell command, use a command like this:

 

ksc_store <token name> ="[EXEC.OUTPUT]"

davecal
Occasional Advisor

Re: Im trying to store the output $DB into P.P_DB

Thank you very much,

 

You're segustion works great.

 

Thanks again,

 

Dave

//Add this to "OnDomLoad" event