× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



In the C librarys there is "SYSTEM" function that executes any command.
After the "write" to your table do: system('SBMJOB CMD(CALL STEP3PGM)')
You can also call a CL that will submit the long running program. (after the write)
_______________________________________________________________________________
Brian Piotrowski wrote:

Thanks for the info, gents.

I'd like to call the program directly, but there's an awful lot of
calculations performed.  Running it as an interactive program would kill
the performance on our iSeries.

After thinking about it last night, my idea was to do the following:

1) User enters the required information into the parameters (starting
point, number of lots between quarters.
2) When user accepts inputs, data is written to a table.  I need to
write these values to the table because subsequent calculations will
take place every five minutes following the input (until the parameters
are changed).
3) Upon writing the data, the system will invoke the CL program, which
in turn will submit the RPG calculation program to batch.  The RPG
calculation program will then read the values from the parameter table
and perform the appropriate calculations.

I have #1 and #2 covered.  However, I'm still unsure of how to make the
webpage call the CL program.  Does anyone have any sample code they can
share to accomplish this task?

Thanks!

Brian.

-----Original Message-----
From: Walden H. Leverich [mailto:WaldenL@xxxxxxxxxxxxxxx] Sent: Monday, March 27, 2006 5:06 PM
To: Midrange Systems Technical Discussion
Subject: RE: Calling CL Programs from an ASP Webpage

Brian,

From ASP you can call any iSeries program. The OLEDB driver has some
messed up syntax (enclosing the call in brackets {} if I recall
correctly) that lets you call anything you want. Or, simply describe the
CL to the system as a external stored proc and call it like any other
stored proc. Also, if the program that computes the values is an RPG
program, why not call that directly?

-Walden

------------
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.