davecal Respected Contributor.
Respected Contributor.
506 views

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

Jump to solution

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

0 Likes
1 Solution

Accepted Solutions
Absent Member.. Jim Esler Absent Member..
Absent Member..

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

Jump to solution

$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]"

2 Replies
Absent Member.. Jim Esler Absent Member..
Absent Member..

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

Jump to solution

$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 Respected Contributor.
Respected Contributor.

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

Jump to solution

Thank you very much,

 

You're segustion works great.

 

Thanks again,

 

Dave

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.