|
If you can run a RPG program, you can do what you want. The question is
still open. Is the result of run the various statements in your RPG program
a single output?
On Thu, Jun 26, 2014 at 4:47 PM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
what I wanted to do, is take all the SQL's already created and create onethe
large SP from that. I don't need parameters really. Can this be done on
ibm i?each
On Thu, Jun 26, 2014 at 6:46 PM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
i can either place them in the CR or I was going to make a view for
statements,one and load them in the CR.wrote:
On Thu, Jun 26, 2014 at 6:43 PM, Alan Campin <alan0307d@xxxxxxxxx>
In the existing logic, what do you do the results of the SQL
http://www.mysamplecode.com/2011/07/create-stored-procedure-for-rpgle.htmlSQL.generate a report? What you need to do is result set and return it in
Temporary
Plenty of examples on the web.
Here is one returning an array. A neat little solution is Global
Files. Build you results in a Global Temp File then return the result.
canwrote:
On Thu, Jun 26, 2014 at 4:36 PM, Alan Campin <alan0307d@xxxxxxxxx>
about
What I am not clear on is what you are trying to do. Are you talkingabout
separate reports that each use a different SQL or are you talking
onea
several different SQL statements that need to run in order to create
result set?wrote:
On Thu, Jun 26, 2014 at 4:32 PM, Alan Campin <alan0307d@xxxxxxxxx>
The other nice thing about using the Stored Procedure is that you
gettingtest the stored procedure independently and make sure you are
performance,the
wrote:correct results.
On Thu, Jun 26, 2014 at 4:30 PM, Alan Campin <alan0307d@xxxxxxxxx>
done
You are incorrect when you say that Crystal cannot do this. I have
writtenit hundreds of time. You just have Crystal call a stored procedure
in RPG passing whatever parameters you need. If better
canstoredmake
the RPG a Service Program. The Crystal Reports runs, calls the
thatReportsprocedure, the stored procedure returns a result set that Crystal
runs inreads just as if you had run it from an SQL statement. All of this
real time and the data is in real time.
On Thu, Jun 26, 2014 at 4:23 PM, Vernon Hamberg <
vhamberg@xxxxxxxxxxxxxxx> wrote:
I strongly urge you NOT to put all the SQL processing into CR -
donewill perform really really really badly.
All CR should be doing is presentation.
This is a long-standing recommendation regarding CR.
You make it dynamic by passing parameters from CR - that can be
easily, as I recall - it has been a long time, so someone else
alan0307d@xxxxxxxxxrun.speak to
that.
Good luck
Vern
On 6/26/2014 5:14 PM, Hoteltravelfundotcom wrote:
but it won't be dynamic data that way. The RPG would need to be
logicthe
other issue with making a view is you have to replicate whatever
is
on the logicals that are used.
On Thu, Jun 26, 2014 at 6:04 PM, Alan Campin <
itreturn
wrote:
My question? Why? Just create a stored procedure in RPG and
the
result set to the Crystal Reports. The business logic is where
intobelongs,
on the iSeries and presenting is the Crystal.
On Thu, Jun 26, 2014 at 4:00 PM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
HI I have replicated functions from RPG program into SQL's.
I can make each sql as a VIEW. But would like to load them
showingissuethe
CR as
one unit. But the CR rejects more than one. But is this a CR
or is
there syntax needed to run more than 1 CR.
I think I want to keep these separately coded, as we are
listin 1ordersin
various forms of progress i.e. Picking, engraving etc. I want
eachcr for
tedious wise, there are many screens of RPG i have to do and
ASTCCDTA.TRNSTAT2 atime to
make a VIEW is time consuming if there is an alternatives.
SELECT count(*)as Picking
FROM
CCDTA.OEORH48,CCDTA.TRNSTAT2,CCDTA.OETRA99
WHERE OHCOM# = TSCOM# AND OHORD# = TSORD#
AND (otCOM# = OHCOM# AND OTORD#= OHORD# AND ottrnc = 'AQC')
AND OHORDT IN('RTR','INT','SAM') AND TSSTAT IN('ECT','STP')
AND OHREQD = replace(char(current date, iso), '-', '') AND
OHHLDC = ' 'AND OHORD# in(SELECT a.TSORD# FROM
--OHHLDC =WHERE a.tsstat IN('AEP','BGE','EAS','REL','STP'));
SELECT count(*) as LaserENG FROM
CCDTA.OEORH48,CCDTA.TRNSTAT2,CCDTA.OETRA99
WHERE OHCOM# = TSCOM# AND OHORD# = TSORD#
AND (otCOM# = OHCOM# AND OTORD#= OHORD# AND ottrnc = 'AQC')
AND TSSTAT IN('EAS','REL','SCC')
AND OHORDT IN('RTR','INT','SAM')
AND OHREQD = replace(char(current date, iso), '-', '') AND
mailing--''list
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxThis is the Midrange Systems Technical Discussion (MIDRANGE-L)
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
--list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.