Re: [U2] Paragraphs and procwrite

2009-06-03 Thread Barry Rogen

What about using the ILPROMPT

IL.VALUE = A CORRESPONDING PROMPT IN THE PARAGRAPH
.
.
.
DATA  VALUE_TO_PASS_TO_PARAGRAPH
PRINT ILPROMPT(IL.VALU)




Barry  Rogen
PNY Technologies, Inc.
Senior  Programmer/Analyst
(973)  515 - 9700  ext 5327
bro...@pny.com

-
We are continually faced with great opportunities
brilliantly disguised as insoluble problems.
 John W
Gardner

P Before printing please think about your environmental responsibility


-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
Sent: Friday, May 22, 2009 6:15 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Paragraphs and procwrite

Hi all,

 

Is there a way to accomplish passing an argument from a basic program to
a
paragraph?

 

Something like what procwrite does with a Proc?

 

Thanks
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

3/6/2009NOT INTENDED AS A SUBSTITUTE FOR A WRITING 

NOTHING IN THIS E-MAIL, IN ANY E-MAIL THREAD OF WHICH IT MAY BE A PART, OR IN 
ANY ATTACHMENTS THERETO, SHALL CONSTITUTE A BINDING CONTRACT, OR ANY 
CONTRACTUAL OBLIGATION BY PNY, OR ANY INTENT TO ENTER INTO ANY BINDING 
OBLIGATIONS, NOTWITHSTANDING ANY ENACTMENT OF THE UNIFORM ELECTRONIC 
TRANSACTIONS ACT, THE FEDERAL E-SIGN ACT, OR ANY OTHER STATE OR FEDERAL LAW OF 
SIMILAR SUBSTANCE OR EFFECT.  THIS EMAIL MESSAGE, ITS CONTENTS AND ATTACHMENTS 
ARE NOT INTENDED TO REPRESENT AN OFFER OR ACCEPTANCE OF AN OFFER TO ENTER INTO 
A CONTRACT.  NOTHING IN THIS E-MAIL, IN ANY E-MAIL THREAD OF WHICH IT MAY BE A 
PART, OR IN ANY ATTACHMENTS THERETO SHALL ALTER THIS DISCLAIMER.  

This e-mail message from PNY Technologies, Inc. is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
Any unauthorized review, use, disclosure or distribution is prohibited. If you 
are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


RE: [U2] Paragraphs and procwrite

2009-05-26 Thread David A. Green
Roy if possible I would reengineer using UniBasic as the driver program
calling other programs and paragraphs.

Thanks,
David A. Green
www.dagconsulting.com
(480) 813-1725


-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
Sent: Monday, May 25, 2009 5:18 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Paragraphs and procwrite

To explain a little better ...

The paragraph calls many other procs and paragraphs as well as a number of
basic programs.  What I found is that if someone exits a basic program,
control is returned to the calling paragraph.
  
Since the paragraph is in use I cannot modify it and accomplish anything
that way.

Obviously reading something from the command line won't work in this
circumstance.

With a PQ type proc I could set a flag like INVALID and procwrite it back to
the calling paragraph for testing to see if the proc should continue.

I believe the idea of using @user0 may work but I haven't had a chance to
test it.

I was also hoping to avoid writing something to a file since there are many
instances of this and clearing the flags could be a problem.

Thanks again,

Roy

-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of phil walker
Sent: Sunday, May 24, 2009 8:07 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Paragraphs and procwrite

Maybe I have come in late or are missing something in the question but
can't you just use:

Command = 'paragraph ':arg1
Execute Command

Then in the paragraph

Do something like

PA
* C2,arg1

Cheers

Phil.

 -Original Message-
 From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-
 us...@listserver.u2ug.org] On Behalf Of Jacques G.
 Sent: Monday, 25 May 2009 12:01 p.m.
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] Paragraphs and procwrite
 
 You can have the basic program generate the paragraph dynamically, and
 save it in the Voc under a temporary name.  You can even have that
 paragraph delete itself when it is done.
 
 
 
 - Original Message 
 From: Brian Leach br...@brianleach.co.uk
 To: u2-users@listserver.u2ug.org
 Sent: Saturday, May 23, 2009 7:45:04 AM
 Subject: RE: [U2] Paragraphs and procwrite
 
 Hi
 
 You could use one of the user-defined system variables: e.g. @USER0
 
 E.g.
 PA
 CallMyProgram
 IF @USER0 = SomeFlag GO DoSomething
 
 PROGRAM CallMyProgram
   @USER0 = SomeOtherFlagActually
 END
 
 
  -Original Message-
  From: owner-u2-us...@listserver.u2ug.org
  [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
  Sent: 22 May 2009 23:15
  To: u2-users@listserver.u2ug.org
  Subject: [U2] Paragraphs and procwrite
 
  Hi all,
 
 
 
  Is there a way to accomplish passing an argument from a basic
  program to a paragraph?
 
 
 
  Something like what procwrite does with a Proc?
 
 
 
  Thanks
  ---
  u2-users mailing list
  u2-users@listserver.u2ug.org
  To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Paragraphs and procwrite

2009-05-25 Thread roy
To explain a little better ...

The paragraph calls many other procs and paragraphs as well as a number of
basic programs.  What I found is that if someone exits a basic program,
control is returned to the calling paragraph.
  
Since the paragraph is in use I cannot modify it and accomplish anything
that way.

Obviously reading something from the command line won't work in this
circumstance.

With a PQ type proc I could set a flag like INVALID and procwrite it back to
the calling paragraph for testing to see if the proc should continue.

I believe the idea of using @user0 may work but I haven't had a chance to
test it.

I was also hoping to avoid writing something to a file since there are many
instances of this and clearing the flags could be a problem.

Thanks again,

Roy

-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of phil walker
Sent: Sunday, May 24, 2009 8:07 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Paragraphs and procwrite

Maybe I have come in late or are missing something in the question but
can't you just use:

Command = 'paragraph ':arg1
Execute Command

Then in the paragraph

Do something like

PA
* C2,arg1

Cheers

Phil.

 -Original Message-
 From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-
 us...@listserver.u2ug.org] On Behalf Of Jacques G.
 Sent: Monday, 25 May 2009 12:01 p.m.
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] Paragraphs and procwrite
 
 You can have the basic program generate the paragraph dynamically, and
 save it in the Voc under a temporary name.  You can even have that
 paragraph delete itself when it is done.
 
 
 
 - Original Message 
 From: Brian Leach br...@brianleach.co.uk
 To: u2-users@listserver.u2ug.org
 Sent: Saturday, May 23, 2009 7:45:04 AM
 Subject: RE: [U2] Paragraphs and procwrite
 
 Hi
 
 You could use one of the user-defined system variables: e.g. @USER0
 
 E.g.
 PA
 CallMyProgram
 IF @USER0 = SomeFlag GO DoSomething
 
 PROGRAM CallMyProgram
   @USER0 = SomeOtherFlagActually
 END
 
 
  -Original Message-
  From: owner-u2-us...@listserver.u2ug.org
  [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
  Sent: 22 May 2009 23:15
  To: u2-users@listserver.u2ug.org
  Subject: [U2] Paragraphs and procwrite
 
  Hi all,
 
 
 
  Is there a way to accomplish passing an argument from a basic
  program to a paragraph?
 
 
 
  Something like what procwrite does with a Proc?
 
 
 
  Thanks
  ---
  u2-users mailing list
  u2-users@listserver.u2ug.org
  To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Paragraphs and procwrite

2009-05-25 Thread phil walker
Okay, you can use @system_return_code or @userx to do this. They can
both be checked in the Paragraph after returning from the BASIC program
to see what happened.

If you want to know how let me know.

Cheers,

 -Original Message-
 From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-
 us...@listserver.u2ug.org] On Behalf Of roy
 Sent: Tuesday, 26 May 2009 1:31 a.m.
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] Paragraphs and procwrite
 
 To explain a little better ...
 
 The paragraph calls many other procs and paragraphs as well as a
number
 of
 basic programs.  What I found is that if someone exits a basic
program,
 control is returned to the calling paragraph.
 
 Since the paragraph is in use I cannot modify it and accomplish
 anything
 that way.
 
 Obviously reading something from the command line won't work in this
 circumstance.
 
 With a PQ type proc I could set a flag like INVALID and procwrite it
 back to
 the calling paragraph for testing to see if the proc should continue.
 
 I believe the idea of using @user0 may work but I haven't had a chance
 to
 test it.
 
 I was also hoping to avoid writing something to a file since there are
 many
 instances of this and clearing the flags could be a problem.
 
 Thanks again,
 
 Roy
 
 -Original Message-
 From: owner-u2-us...@listserver.u2ug.org
 [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of phil walker
 Sent: Sunday, May 24, 2009 8:07 PM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] Paragraphs and procwrite
 
 Maybe I have come in late or are missing something in the question but
 can't you just use:
 
 Command = 'paragraph ':arg1
 Execute Command
 
 Then in the paragraph
 
 Do something like
 
 PA
 * C2,arg1
 
 Cheers
 
 Phil.
 
  -Original Message-
  From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-
  us...@listserver.u2ug.org] On Behalf Of Jacques G.
  Sent: Monday, 25 May 2009 12:01 p.m.
  To: u2-users@listserver.u2ug.org
  Subject: Re: [U2] Paragraphs and procwrite
 
  You can have the basic program generate the paragraph dynamically,
 and
  save it in the Voc under a temporary name.  You can even have that
  paragraph delete itself when it is done.
 
 
 
  - Original Message 
  From: Brian Leach br...@brianleach.co.uk
  To: u2-users@listserver.u2ug.org
  Sent: Saturday, May 23, 2009 7:45:04 AM
  Subject: RE: [U2] Paragraphs and procwrite
 
  Hi
 
  You could use one of the user-defined system variables: e.g. @USER0
 
  E.g.
  PA
  CallMyProgram
  IF @USER0 = SomeFlag GO DoSomething
 
  PROGRAM CallMyProgram
@USER0 = SomeOtherFlagActually
  END
 
 
   -Original Message-
   From: owner-u2-us...@listserver.u2ug.org
   [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
   Sent: 22 May 2009 23:15
   To: u2-users@listserver.u2ug.org
   Subject: [U2] Paragraphs and procwrite
  
   Hi all,
  
  
  
   Is there a way to accomplish passing an argument from a basic
   program to a paragraph?
  
  
  
   Something like what procwrite does with a Proc?
  
  
  
   Thanks
   ---
   u2-users mailing list
   u2-users@listserver.u2ug.org
   To unsubscribe please visit http://listserver.u2ug.org/
  ---
  u2-users mailing list
  u2-users@listserver.u2ug.org
  To unsubscribe please visit http://listserver.u2ug.org/
  ---
  u2-users mailing list
  u2-users@listserver.u2ug.org
  To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Paragraphs and procwrite

2009-05-24 Thread Jacques G.
You can have the basic program generate the paragraph dynamically, and save it 
in the Voc under a temporary name.  You can even have that paragraph delete 
itself when it is done.



- Original Message 
From: Brian Leach br...@brianleach.co.uk
To: u2-users@listserver.u2ug.org
Sent: Saturday, May 23, 2009 7:45:04 AM
Subject: RE: [U2] Paragraphs and procwrite

Hi

You could use one of the user-defined system variables: e.g. @USER0

E.g.
PA
CallMyProgram
IF @USER0 = SomeFlag GO DoSomething

PROGRAM CallMyProgram
  @USER0 = SomeOtherFlagActually
END


 -Original Message-
 From: owner-u2-us...@listserver.u2ug.org 
 [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
 Sent: 22 May 2009 23:15
 To: u2-users@listserver.u2ug.org
 Subject: [U2] Paragraphs and procwrite
 
 Hi all,
 
  
 
 Is there a way to accomplish passing an argument from a basic 
 program to a paragraph?
 
  
 
 Something like what procwrite does with a Proc?
 
  
 
 Thanks
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Paragraphs and procwrite

2009-05-23 Thread Brian Leach
Hi

You could use one of the user-defined system variables: e.g. @USER0

E.g.
PA
CallMyProgram
IF @USER0 = SomeFlag GO DoSomething

PROGRAM CallMyProgram
  @USER0 = SomeOtherFlagActually
END


 -Original Message-
 From: owner-u2-us...@listserver.u2ug.org 
 [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
 Sent: 22 May 2009 23:15
 To: u2-users@listserver.u2ug.org
 Subject: [U2] Paragraphs and procwrite
 
 Hi all,
 
  
 
 Is there a way to accomplish passing an argument from a basic 
 program to a paragraph?
 
  
 
 Something like what procwrite does with a Proc?
 
  
 
 Thanks
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Paragraphs and procwrite

2009-05-22 Thread roy
Hi all,

 

Is there a way to accomplish passing an argument from a basic program to a
paragraph?

 

Something like what procwrite does with a Proc?

 

Thanks
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Paragraphs and procwrite

2009-05-22 Thread Louie Bergsagel
Many:
1. Have the program create and/or update the paragraph record in the VOC
file with a read, insert, and write.
2. Have the program run the paragraph with the appropriate argument, e.g.
   ARGUMENT = USER.INPUT.PART.NO http://user.input.part.no/
   COMMAND = PARAGRAPH.NAME http://paragraph.name/ :ARGUMENT
   EXECUTE COMMAND
3. If the paragraph needs a select statement, you can have a program
build an appropriate SAVE.LIST, execute the GET.LIST command inside the
program, and let the paragraph process the records.
4. The paragraph can also read a variable from a VOC file with the F,...
prompt. I believe HELP  will give you the details.

-- Louie Bergsagel
   Bergsagel Computer Consulting

On Fri, May 22, 2009 at 3:14 PM, roy r...@distsolutions.com wrote:

 Hi all,




 Is there a way to accomplish passing an argument from a basic program to a
 paragraph?

 Something like what procwrite does with a Proc?

 Thanks
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Paragraphs and procwrite

2009-05-22 Thread Louie Bergsagel
And of course, the paragraph mentioned in #2 would read the argument using
the C2 command, where the number in the Cn prompt represents, in
this example, the second word on the command line.

e.g. IF C2 #  THEN SELECT INVENTORY WITH PART.NO = C2

On Fri, May 22, 2009 at 5:25 PM, Louie Bergsagel
louiebergsa...@gmail.comwrote:

 ...
 2. Have the program run the paragraph with the appropriate argument, e.g.
ARGUMENT = USER.INPUT.PART.NO http://user.input.part.no/
COMMAND = PARAGRAPH.NAME http://paragraph.name/ :ARGUMENT
EXECUTE COMMAND
 ...
 -- Louie Bergsagel
Bergsagel Computer Consulting
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/