Re: [U2] Proc question

2012-05-10 Thread John Jenkins
...@listserver.u2ug.org] On Behalf Of Kebbon Irwin Sent: Wednesday, May 09, 2012 11:05 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Proc question Hi Ed,I am pretty sure that PQN procs are supported in Unidata, I have never used them or seen a manual for them. Like you I have not found anything

Re: [U2] Proc question

2012-05-10 Thread David L. Wasylenko
. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Jenkins Sent: Thursday, May 10, 2012 4:48 PM To: U2 Users List Cc: U2 Users List Subject: Re: [U2] Proc question I use PQN PROCs regularly, including indirect buffer

Re: [U2] Proc question

2012-05-09 Thread Kebbon Irwin
+1200 Subject: Re: [U2] Proc question Hi Kebbon, I don't like Procs, but * Set the primary input buffer as active SP * Activate the primary output buffer STOFF * Alternatively, clear both output buffers and make the primary the active one RO * Set the input buffer pointer

Re: [U2] Proc question

2012-05-09 Thread Kebbon Irwin
@listserver.u2ug.org Subject: Re: [U2] Proc question On May 7, 2012, at 4:45 PM, Kebbon Irwin wrote: Anyone know/remember how to do this:I have a string in my input buffer XX*YYYNNI want to place just YYYNN in my output bufferI feel I should be able to do this without writing my own user mode

Re: [U2] Proc question

2012-05-09 Thread Brenda Ives
] On Behalf Of Kebbon Irwin Sent: Wednesday, May 09, 2012 11:05 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Proc question Hi Ed,I am pretty sure that PQN procs are supported in Unidata, I have never used them or seen a manual for them. Like you I have not found anything in the udtdocs

Re: [U2] Proc question

2012-05-09 Thread Laura Wright
...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brenda Ives Sent: Wednesday, May 09, 2012 11:23 AM To: 'U2 Users List' Subject: Re: [U2] Proc question Guide to ProVerb - UniVerse proc documentation. Brenda L Ives UniVerse Team Lead Rapid Response Team marketamerica.com

Re: [U2] Proc question

2012-05-09 Thread Ed Clark
Of Kebbon Irwin Sent: Wednesday, May 09, 2012 11:05 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Proc question Hi Ed,I am pretty sure that PQN procs are supported in Unidata, I have never used them or seen a manual for them. Like you I have not found anything in the udtdocs

Re: [U2] Proc question

2012-05-09 Thread Robert Houben
:28 PM To: U2 Users List Subject: Re: [U2] Proc question PQN procs are supported in unidata for sure. Just wasn't sure if the conversions on the MV command work there. You can use the universe proverb documentation as a starting point for working with procs in unidata, but there are a lot

Re: [U2] Proc question

2012-05-08 Thread Keith Johnson [DATACOM]
Hi Kebbon, I don't like Procs, but * Set the primary input buffer as active SP * Activate the primary output buffer STOFF * Alternatively, clear both output buffers and make the primary the active one RO * Set the input buffer pointer to the first (or whatever) parameter S1 * Move a

Re: [U2] Proc question

2012-05-07 Thread Ed Clark
On May 7, 2012, at 4:45 PM, Kebbon Irwin wrote: Anyone know/remember how to do this:I have a string in my input buffer XX*YYYNNI want to place just YYYNN in my output bufferI feel I should be able to do this without writing my own user mode or a program that does a

Re: [U2] PROC question

2006-01-26 Thread Mark Johnson
Look for any PROCREAD or PROCWRITE statements as well in the programs. - Original Message - From: John Hester [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Wednesday, January 25, 2006 4:41 PM Subject: Re: [U2] PROC question Bob Woodward wrote: Maybe I'm just missing

RE: [U2] PROC question

2006-01-26 Thread Glenn Herbert
PQ 10 C Top of Main Menu RI RO OA number of lines that display the available menu choices ... OEnter choice + IP: IF # A X IF A = 1 GO 100 ... IF A = 99 GO 990 You might as well use the multi-valued IF/GO, ie. IF A = 1]...]99 GO 100]...]990 Where ] is a value-mark character. Then

RE: [U2] PROC question

2006-01-25 Thread Baker Hughes
Bob, This is from memory, so I trust someone will affirm/correct my prognosis, but isn't the PIB (primary input buffer) cleared when you execute the program. So when you return, A (or answer, A1 assumed) is now null? -Baker My problem is when I come back from one of the PROGxx.PROC's, I'm not

RE: [U2] PROC question

2006-01-25 Thread Pingilley, Ron
Bob, Does the called PROC have an RI in it by any chance? That would clear the input buffers and leave nothing for the original PROC to use in the IF A statement. --Ron P. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward Sent:

Re: [U2] PROC question

2006-01-25 Thread Dianne Ackerman
Something in the far reaches of my mind tells me that you need to do something like use a left paren instead of a bracket, like IF A = 1 (PROD.PL PROG1.PROC Can't try it right now to verify, though, sorry! -Dianne Bob Woodward wrote: Hi folks, Maybe I'm just missing the finer points of

Re: [U2] PROC question

2006-01-25 Thread Glenn Herbert
If this is for universe, the problem here stems from the fact that your [PROD.xx procs are stomping all over the buffers of the main menu proc. There's not really much you can do about that, but you could modify your main proc slightly as follows: 0001: PQ 002 F-OPEN 1 VOC 003 XNO VOC 004 10 C

RE: [U2] PROC question

2006-01-25 Thread Mark Eastwood
Two thoughts, 1) Change the IF A = to IF A1 =, i.e. specify the input buffer. 2) Are any of the PROGxx.PROC doing an RI? This will clear the input buffer. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward Sent: Wednesday, January 25, 2006

Re: [U2] PROC question

2006-01-25 Thread Susan Lynch
Bob, If A1 gets overwritten in PROD.PL PROG1.PROC, then it won't be 1 when you come back to the menu proc. Are you being careful to preserve the value in A1 when you are in the called proc? Susan M. Lynch F.W. Davison Company, Inc. (781) 340-9255Support fax # (508) 437-0093

RE: [U2] PROC question

2006-01-25 Thread Glenn Herbert
[EMAIL PROTECTED] wrote on 01/25/2006 04:10:18 PM: 2) Are any of the PROGxx.PROC doing an RI? This will clear the input buffer. Doesn't matter. The simple fact of using '[' to initiate the subroutine PROC was enough to cause the automatic clearing of the buffers. And using '(' will cause

Re: [U2] PROC question

2006-01-25 Thread John Hester
Bob Woodward wrote: Maybe I'm just missing the finer points of PROC processing. I've got a MENU proc that's structured like this: PQ 10 C Top of Main Menu OA number of lines that display the available menu choices ... OEnter choice + IP: IF # A X IF A = 1 [PROD.PL PROG1.PROC IF A = 1 G 10 ...

RE: [U2] PROC question

2006-01-25 Thread Bob Woodward
As always, the top quality abilities of the folks on this list keep me in awe. My major flaw was in the assumption that PROC processing is like PROGRAM processing. I now know that there is only one set of buffers, period. Next were the good suggestions on how to properly accomplish what I was

RE: [U2] PROC question

2006-01-25 Thread Bill Haskett
, January 25, 2006 1:01 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] PROC question If this is for universe, the problem here stems from the fact that your [PROD.xx procs are stomping all over the buffers of the main menu proc. There's not really much you can do about that, but you

Re: [U2] PROC Question

2006-01-12 Thread Mark Johnson
, 2006 1:35 PM Subject: RE: [U2] PROC Question Bob: I used to be pretty proficient in PROC and have never heard of this...but that doesn't mean it doesn't exist. :-) Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward Sent

Re: [U2] PROC Question

2006-01-12 Thread Mark Johnson
Subject: RE: [U2] PROC Question Thanks, everyone. I got exactly the answer I was afraid I would get. Yes, my mind is fried... heavy sigh Because of system programming standards, I need to stay with a PROC but I was hoping to be able to streamline them a little bit. I appreciate the answers

RE: [U2] PROC Question

2006-01-12 Thread Tony Gravagno
Bob Woodward wrote: What I want to be able to do is: IF A = 5 [USER.PL BASIC.PGM1];[USER.PL BASIC.PGM2];G 10 In RPL the subvalue mark is used to accomplish this: IF A = 5 [USER.PL BASIC.PGM1]\[USER.PL BASIC.PGM2]\G 10 Use ctrl-\ for the subvalue mark. I'm positive that we can do GS 10\GS

RE: [U2] PROC Question

2006-01-12 Thread Bob Woodward
@listserver.u2ug.org Subject: RE: [U2] PROC Question Bob Woodward wrote: What I want to be able to do is: IF A = 5 [USER.PL BASIC.PGM1];[USER.PL BASIC.PGM2];G 10 In RPL the subvalue mark is used to accomplish this: IF A = 5 [USER.PL BASIC.PGM1]\[USER.PL BASIC.PGM2]\G 10 Use ctrl-\ for the subvalue mark

Re: [U2] PROC Question

2006-01-11 Thread Glenn Herbert
That type of functionality is not possible (unless PROC has been modified since I worked in it) - that's the reason you can't find anything in the documentation. You have a choice of doing it the way you are, or using GOSUB/GOTO to define the multiple lines as a subroutine.

RE: [U2] PROC Question

2006-01-11 Thread Mark Eastwood
Maybe something like this? IF A = 5 G 500 ... 500 C [USER.PL BASIC1 [USER.PL BASIC2 G 10 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward Sent: Wednesday, January 11, 2006 10:35 AM To: U2-Users List Subject: [U2] PROC Question Hi folks, I

RE: [U2] PROC Question

2006-01-11 Thread Paul Sohn
Why not form GO TO blocks? Example: 5 C Print Menu T C O MENU 10 C Input Menu Option IP IF A = 1 GO 100 IF A = 2 GO 200 IF A = 3 GO 300 GO 10 100 C First menu Option HRUN USER.PL BASIC.PGM1 P HRUN USER.PL BASIC.PGM2 P GO 5 200 C Second Menu Option HRUN USER.PL BASIC.PGM4 P HRUN USER.PL

RE: [U2] PROC Question

2006-01-11 Thread Brian Leach
The only sensible ways are: 1. Subroutines GOSUB n n MV #1 blah P .. RSUB 2. Ext subroutines C has commands [file someproc] 3. Execute something sensible like a paragraph and give up using ugly PROCs Brian Like PROC - ugly but works -Original Message- From: Bob Woodward[EMAIL

RE: [U2] PROC Question

2006-01-11 Thread u2
Wouldn't you rather just rewrite the proc in basic? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward Sent: Wednesday, January 11, 2006 12:35 PM To: U2-Users List Subject: [U2] PROC Question Hi folks, I can't find anything in the

RE: [U2] PROC Question

2006-01-11 Thread Bob Woodward
Thanks, everyone. I got exactly the answer I was afraid I would get. Yes, my mind is fried... heavy sigh Because of system programming standards, I need to stay with a PROC but I was hoping to be able to streamline them a little bit. I appreciate the answers everyone offered, including the

RE: [U2] PROC Question

2006-01-11 Thread John Jenkins
It's been a LONG time ... I can remember writing a whole PL suite in MDIS PROC (don't ask...) I recall that in PQN procs you could have a construct such as PQN M RI IP: IF %1 = 1]2]3]4]5 G 10]20]30]40]50 T Bad entry G B 10 XTEN 20 XTWENTY 30 XTHIRTY 40 XFORTY 50 XFIFTY Etc - or whatever

RE: [U2] PROC Question

2006-01-11 Thread Bruce Nichol
Goo'day, Jay Jay and . At 22:29 11/01/06 +, you wrote: It's been a LONG time ... I can remember writing a whole PL suite in MDIS PROC (don't ask...) I recall that in PQN procs you could have a construct such as PQN M RI IP: IF %1 = 1]2]3]4]5 G 10]20]30]40]50 That's the MDIS