Kathleen

The way PROC works is that it stores data and commands in buffers, one of
which is also known as the stack. 
Execution is the process of moving these between input and output buffers.
If you've ever worked with assembler this will make perfect sense to you.

The D command displays data in a buffer.

Quoted from below:
    * Proc is to move data between input and output buffers, 
                using arguments passed from the command line, 
                user-prompted input, and 
                stored data and commands to build a TCL statement.

To run things you would push commands onto the stack (using H) and then
process them (using P). To store further things on the stack before running
a command, like answers to questions the command might ask, you would put in
a STON command (Stack On) and preload it in the next lines, until it hits a
P(rocess command).

This stack concept is the same used in BASIC when we want to run a command
and feed it pre-arranged answers (using DATA) to questions it might ask. 

Every data storage and excution place in a PROC is a buffer.

Quoted from below:
    * H command places the literal string in the output buffer
    * A command copies user input to the output buffer.
    * P command sends the contents of the output buffer to the TCL
processor.


http://jdjua.com/sqlpickjbaseuniverse.htm
 Proc: Consist of TCL Commands : JCL and Shell Programming

    * PROC processor:
    * PROCLIB is a file that contains Procs supplied with the system.
    * LISTPROCS is a system Proc that lists all the Procs in file PROCLIB in
dictionary format.
    * SYSPROG account has additional Procs and programs stored in the
SYSPROG-PL (SPL is a synonym for it)  file.
    * Proc (initial capitalization) refers to a procedure
    * Proc is to move data between input and output buffers, using arguments
passed from the command line, user-prompted input, and stored data and
commands to build a TCL statement.
    * TCL or INFO/ACCESS statements called Procs.
    * Primary input buffer
    * Secondary input buffer
    * Primary output buffer
          o At any given time, one input buffer and one output buffer are
active
          o PROC Buffer. A buffer contains parameters which are delimited by
spaces. A buffer pointer points to the current parameter.
    * Secondary output buffer (also known as the STACK)
    * TCL Processor
    * PQ to identify it to the system as a Proc
    * H command places the literal string in the output buffer
    * A command copies user input to the output buffer.
    * P command sends the contents of the output buffer to the TCL
processor.
    * O command displays a string of text on the user's terminal screen.
    * IP command reads the information entered by the user into the input
buffer. It prompts for the input with a colon (:).
    * GO 10 transfers control to the command line that is labelled 10
    * X command terminates the Proc and returns control to the TCL processor
    * IF command provides for conditional branching.
    * C must be the first character on a comment line
    * ()([DICT] filename proc-name): create Proc
    * IT Command: Tape Input
    * IH Command: replaces the current parameter in the input buffer with
text
    * +/- Commands: + (add) command adds an integer to the current parameter
in the input buffer and the - (subtract) command subtracts an integer from
this parameter.
    * RI Command: Reset Input
    * F Command Moves the active input buffer pointer forward to the next
parameter.
    * B Command Moves the active input buffer pointer backward one
parameter.
    * S Command The S (set) command moves the active input buffer pointer to
a specific parameter.
    * LIST CUSTOMERS WITH LAST-NAME = "JOHNSON" LAST-NAME FIRST-NAME STREET
CITY STATE : Access Statement: List Customers with Last name as JOHNSON with
other fields.
    * SORT-ITEM MD WITH D/CODE = "PQ": INFO/ACCESS command: sorts and
displays all items in the Master Dictionary whose first line is PQ.

A nice reference manual is
ftp://ftp.rainingdata.com/pub/mvBase/2.1/Documentation/ReferenceManual/procp
qx.pdf

Another place to look is
http://www.sierra-bravo.com/multivalue/d3reference/command/proc


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kathleene M Hunter
Sent: 31 July 2008 03:40 AM
To: [email protected]
Subject: RE: [U2] UniData PROC tip: DB command

It not a buffer

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ballinger
Sent: Wednesday, July 30, 2008 5:29 PM
To: [email protected]
Subject: Re: [U2] UniData PROC tip: DB command

R83 style for this is:

D0 - display all
D1 - display buffer 1
D2 - display buffer 2
etc

/Scott Ballinger
Pareto Corporation
Edmonds WA USA
206 713 6006

On Wed, Jul 30, 2008 at 4:46 PM, Wally Terhune <[EMAIL PROTECTED]> wrote:

> Kathleene's posting jogged my memory on this...
>
> DB (Display Buffers) command works in UniData PROCs. Very helpful for 
> debugging PROC.
> I think this is unique to UniData? (MV seasoned vetrans care to 
> comment?)
>
> DB on a line all by itself will display all buffers (varies for PQN vs 
> PQ proc).
> Once you see all of the buffer names, you can just display one.
> For instance, to display the primary input buffer:
>
> DB PIB
>
> Haven't fielded a support case with PROC questions in years, though.
(IIRC)
> regards,
>
>  Wally Terhune                               Mark your
>  U2 Support Architect                        calendar!
>  IBM Information Management Software
>  Tel: (303) 773-7969             T/L
>  656-7969
>  Mobile: (303) 807-6222
>  Email: [EMAIL PROTECTED]
>  http://www.ibm.com/software/data/u2/support
>
> [demime 1.01d removed an attachment of type image/jpeg which had a 
> name of 22457278.jpg]
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.7/1581 - Release Date: 7/30/2008
6:56 AM
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to