Possibility to automate a run statement

Posted by Venky on 16-Apr-2015 23:44

Hi All,

I am new to this kind of thing.

I have a program to run on procedure editor. Now I am doing it as

1) open procedure editor, using a desktop shortcut

2) write 'run test.p' and 'F2' to run

Is there a way to automate this as a .bat or another shortcut.

Posted by Mike Fechner on 17-Apr-2015 01:54

Exactly.
 
You either run prowin32 –p _edit (the editor) or prowin32 –p <your procedure>.
 
Take a copy of your editor desktop or start menu shortcut and add –p <your procedure>
 
That should start your procedure with the same settings as you usually start the editor.
 
Von: James Palmer [mailto:bounce-jdpjamesp@community.progress.com]
Gesendet: Freitag, 17. April 2015 08:52
An: TU.OE.Development@community.progress.com
Betreff: RE: [Technical Users - OE Development] Possibility to automate a run statement
 
Reply by James Palmer

Why do you have to launch the procedure editor? That doesn't make much sense to me?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

All Replies

Posted by Tim Kuehn on 16-Apr-2015 23:51

mpro -p ProgramName.p



On Fri, Apr 17, 2015 at 12:44 AM, Venky
wrote:
> Possibility to automate a run statement
> Thread created by Venky
>
> Hi All,
>
> I am new to this kind of thing.
>
> I have a program to run on procedure editor. Now I am doing it as
>
> 1) open procedure editor, using a desktop shortcut
>
> 2) write 'run test.p' and 'F2' to run
>
> Is there a way to automate this as a .bat or another shortcut.
>
> Stop receiving emails on this subject.
>
> Flag this post as spam/abuse.



--
Tim Kuehn: Senior Consultant - TDK Consulting Services
President - Ontario PUG
Program Committee Chair - PUG Challenge Americas,
Course Instructor: Intro to OO Concepts for Procedural Programmers

Skype: timothy.kuehn
Ph: 519-576-8100
Cell: 519-781-0081

Posted by Venky on 17-Apr-2015 00:10

I have to run my test.w in the scope of the procedure editor, I mean shortcut for editor initializes session and DB and then I go an run my program from it?

Posted by Venky on 17-Apr-2015 01:21

Any inputs please

Problem is 1) I have to initiate my procedure editor instance and then 2) run my program from that editor.

Posted by James Palmer on 17-Apr-2015 01:51

Why do you have to launch the procedure editor? That doesn't make much sense to me?

Posted by Mike Fechner on 17-Apr-2015 01:54

Exactly.
 
You either run prowin32 –p _edit (the editor) or prowin32 –p <your procedure>.
 
Take a copy of your editor desktop or start menu shortcut and add –p <your procedure>
 
That should start your procedure with the same settings as you usually start the editor.
Von: James Palmer [mailto:bounce-jdpjamesp@community.progress.com]
Gesendet: Freitag, 17. April 2015 08:52
An: TU.OE.Development@community.progress.com
Betreff: RE: [Technical Users - OE Development] Possibility to automate a run statement
 
Reply by James Palmer

Why do you have to launch the procedure editor? That doesn't make much sense to me?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

Posted by Venky on 17-Apr-2015 01:56

I don't want to launch the editor. Goal is to run my program in a PE instance started with my specific parameters that will have valid session details for my program to run.

Posted by Frank Meulblok on 17-Apr-2015 03:48

"I don't want to launch the editor. Goal is to run my program in a PE instance"

How would you get a Procedure Editor instance without launching the editor ?

And why do you need the Procedure Editor context in a way that prevents your own program from being the startup parameter ?

This thread is closed