No subject


Sun Aug 25 15:53:35 CDT 2013


commands from within a Powerhouse component. There is no problem running
OS commands this way but they cannot use the continuation character. Put
your command into a single line or create it as a separate file and
execute that command in a single line.

=20

Regards,

JWP

=20

________________________________

From: powerh-l-bounces+john.pickering=3Dnorbord.com at lists.sowder.com
[mailto:powerh-l-bounces+john.pickering=3Dnorbord.com at lists.sowder.com] =
On
Behalf Of Ken Langendock
Sent: Friday, February 28, 2014 9:44 AM
To: powerh-l at lists.sowder.com
Subject: Need a little HP 3000 script help.

=20

Hello all, I know this is not an HP list server, but I need help with my
job script that runs my Powerhouse Programs.

=20

Can anyone tell me why this script would not work on one machine but
work fine on another?

=20

!COMMENT *************************************************************

!COMMENT * Set variables used to archive and send files

!COMMENT *************************************************************

!SETVAR CURRDATE RHT("00!HPYEAR",2) &

!              + RHT("00!HPMONTH",2) &

!              + RHT("00!HPDATE",2)

!SETVAR CURRTIME RHT("00!HPHOUR",2) &

!              + RHT("00!HPMINUTE",2)

=20

When I run the code in a small job by itself it works every time when I
run it in the nightly job I get this:

=20

> :COMMENT *************************************************************

> :COMMENT * Set variables used to archive and send files

> :COMMENT *************************************************************

> :SETVAR CURRDATE RHT("00!HPYEAR",2) &

A string operator was expected but none was found. (CIERR 9755)
(PARM=3D-31)

> :              + RHT("00!HPMONTH",2) &

Invalid first character in command name. (CIERR 9090)

> :              + RHT("00!HPDATE",2)

Invalid first character in command name. (CIERR 9090)

> :SETVAR CURRTIME RHT("00!HPHOUR",2) &

A string operator was expected but none was found. (CIERR 9755)
(PARM=3D-31)

> :              + RHT("00!HPMINUTE",2)

Invalid first character in command name. (CIERR 9090)

=20

I have checked everywhere I can on the web;

-          Found additional comma's that were not needed from one site=20

-          Changed the variable names to NOT include "HP" in the name
according to another site.

=20

I have no idea now.

=20

Ken

=20

=20


------_=_NextPart_001_01CF34A1.5466C746
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40"
xmlns:ns0=3D"http://schemas.microsoft.com/office/2004/12/omml">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--a:link
	{mso-style-priority:99;}
span.MSOHYPERLINK
	{mso-style-priority:99;}
a:visited
	{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
	{mso-style-priority:99;}
p.MSOLISTPARAGRAPH
	{mso-style-priority:34;}
li.MSOLISTPARAGRAPH
	{mso-style-priority:34;}
div.MSOLISTPARAGRAPH
	{mso-style-priority:34;}

 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:Calibri;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.msolistparagraph, li.msolistparagraph, div.msolistparagraph
	{margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:Calibri;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:Calibri;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:756094426;
	mso-list-type:hybrid;
	mso-list-template-ids:509794450 -236843228 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:-;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Calibri;
	mso-fareast-font-family:Calibri;
	mso-bidi-font-family:"Times New Roman";}
@list l0:level2
	{mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level4
	{mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-tab-stop:2.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-tab-stop:3.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level7
	{mso-level-tab-stop:3.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-tab-stop:4.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-tab-stop:4.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ken<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>From the look of your example you =
seem to
be trying to execute the OS commands from within a Powerhouse component. =
There
is no problem running OS commands this way but they cannot use the =
continuation
character. Put your command into a single line or create it as a =
separate file
and execute that command in a single line.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>JWP<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
powerh-l-bounces+john.pickering=3Dnorbord.com at lists.sowder.com =
[mailto:powerh-l-bounces+john.pickering=3Dnorbord.com at lists.sowder.com]
<b><span style=3D'font-weight:bold'>On Behalf Of </span></b>Ken =
Langendock<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, February =
28, 2014
9:44 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
powerh-l at lists.sowder.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Need a little HP =
3000
script help.</span></font><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-family:"Times New =
Roman"'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'>Hello all, I know this is not an HP list server, but I need help =
with
my job script that runs my Powerhouse =
Programs.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'>Can anyone tell me why this script would not work on one machine =
but
work fine on another?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier New"'>!COMMENT
*************************************************************<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier New"'>!COMMENT * Set =
variables
used to archive and send files<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier New"'>!COMMENT
*************************************************************<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier New"'>!SETVAR CURRDATE
RHT(&quot;00!HPYEAR&quot;,2) &amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier =
New"'>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;
+ RHT(&quot;00!HPMONTH&quot;,2) &amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier =
New"'>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;
+ RHT(&quot;00!HPDATE&quot;,2)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier New"'>!SETVAR CURRTIME
RHT(&quot;00!HPHOUR&quot;,2) &amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
lang=3DEN-CA
style=3D'font-size:11.0pt;font-family:"Courier =
New"'>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;
+ RHT(&quot;00!HPMINUTE&quot;,2)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'>When I run the code in a small job by itself it works every time =
when I
run it in the nightly job I get this:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt; :COMMENT =
*************************************************************<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt; :COMMENT * Set variables used to archive =
and
send files<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt; :COMMENT
*************************************************************<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt; :SETVAR CURRDATE =
RHT(&quot;00!HPYEAR&quot;,2)
&amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>A string operator was expected but none was =
found.
(CIERR 9755) (PARM=3D-31)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt;
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;
+ RHT(&quot;00!HPMONTH&quot;,2) &amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>Invalid first character in command name. =
(CIERR
9090)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt;
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;
+ RHT(&quot;00!HPDATE&quot;,2)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>Invalid first character in command name. =
(CIERR
9090)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt; :SETVAR CURRTIME =
RHT(&quot;00!HPHOUR&quot;,2)
&amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>A string operator was expected but none was =
found.
(CIERR 9755) (PARM=3D-31)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>&gt;
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;
+ RHT(&quot;00!HPMINUTE&quot;,2)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:11.0pt;
font-family:"Courier New"'>Invalid first character in command name. =
(CIERR
9090)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'>I have checked everywhere I can on the =
web;<o:p></o:p></span></font></p>

<p class=3Dmsolistparagraph style=3D'text-indent:-.25in;mso-list:l0 =
level1 lfo2'><![if !supportLists]><font
size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:11.0pt'><span
style=3D'mso-list:Ignore'>-<font size=3D1 face=3D"Times New Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]><span lang=3DEN-CA>Found =
additional
comma&#8217;s that were not needed from one site <o:p></o:p></span></p>

<p class=3Dmsolistparagraph style=3D'text-indent:-.25in;mso-list:l0 =
level1 lfo2'><![if !supportLists]><font
size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:11.0pt'><span
style=3D'mso-list:Ignore'>-<font size=3D1 face=3D"Times New Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]><span lang=3DEN-CA>Changed =
the
variable names to NOT include &#8220;HP&#8221; in the name according to =
another
site.<o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'>I have no idea now.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'>Ken<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DCalibri><span lang=3DEN-CA =
style=3D'font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01CF34A1.5466C746--


More information about the powerh-l mailing list