× 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.



Make the program SQLRPG instead of RPG in PDM

define field CNTSQL (count SQL) or some other name, zero its contents, then

/EXEC SQL
/ SELECT COUNT(*) FROM SSH INTO :CNTSQL
/ WHERE
then put the criteria for selection, or leave off the whole WHERE if want all
/END-SQL

I usually put everything for embedded SQL in separate subroutines.

I would like to have the # of records in a file that is being processed,
thought the program data structure would return this. I know I can get it
in a cl, but prefer not to use cl's.

When I run with debug, here is the value that is being returned from the
program data structure. Any ideas what this represents? The actual number
of the file being read is 17,038.

Jim Waymire
Tallyho Systems, Inc.


NBRRCD = 1077952576

D sds
D errmsg 91 170
D userid 254 263
D date 276 281
D pgmid 324 333
D rtime 282 287 0
D nbrrcd 156 159i 0

--
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 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.