Thank you very much.
This is almost what I was doing on the Perl script, but it wouldn't work outside CA SCM.
So, I added your code block to my script and put both on the
Input field and it became something like this
chdir("C:/Noesis/NSCM");
$pkg = ["package"];
$user = "[user]";
$filename = "Versions_" . $user . "_" . $pkg . ".log";
if (open(FILEHANDLE, ">$filename")) {
print "File '$filename' opened\n";
}
else {
print "Could not open file '$filename'";
exit(1);
}
$v='["version"]';
chomp($v);
@vers=split(/" "/,$v);
$vers[0]=~ s/\"//;
$vers[$#vers]=~ s/\"//;
print FILEHANDLE "$_\n" foreach @vers;
close (FILEHANDLE);
EDIT: I think I now understand the problem.
In this particular case, it is not possible to have parameter on the
Program field.
So, I moved user and package parameters to the Input field and will update my original UDP to support it.
I will report my findings.
Best regards,
Ricardo Bernardino