HP3000-L Archives

July 2008, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Matthew Perdue <[log in to unmask]>
Reply To:
Matthew Perdue <[log in to unmask]>
Date:
Mon, 7 Jul 2008 16:36:42 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
Quoting Michael Mileusnich:

When I use the HPCICOMMAND I am passing it my command plus a \n or \r and I
receive the following error:

**** UNEXPECTED ESCAPE CODE ENCOUNTERED IN SYSTEM CODE, ESCAPE CODE = 9132
----------
You have to end the string with a carriage return, not a \n or \r - this
isn't unix, okay? Follow the carriage return character with a space.

In Cobol:

01 MPE-COMMAND.
     05 FILE-EQUATION        PIC  X(30).
     05 FILLER                        PIC  X     VALUE %15.
     05 FILLER                        PIC  X     VALUE " ".

then

MOVE "FILE AR0010P;DEV=NETLP,1,1   " TO FILE-EQUATION.

and then do your call to HPCICOMMAND. In the program I pulled this from for
this example it uses the "COMMAND" intrinsic.

CALL INTRINSIC "COMMAND" USING MPE-COMMAND INTRINSIC-ERROR INTRINSIC-PARM.

IF COND-CODE NOT = 0
...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2