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



Rich

You can't use CL to get the row from an SQL SELECT statement - well, maybe, but it's complicated. Best to use embedded SQL in RPG.

Do you need the last check number for each company number in the file? You could do something like this -

select company_number, max(check_number) from check_file group by company_number

HTH
Vern

Rich_Weislak@xxxxxxxxx wrote:
All, I have a SQL question, I need to get the last record with a file by Account Number, basically I need to get that last check number used by Company Number, is there a SQL statement that I can use for this, it will also be nice if could use it within a CL program. Any suggestion would be nice.
Thanks,


Rich Weislak
Applications Sr. Analyst

CONFIDENTIAL NOTICE:
This e-mail message, including any attachments, 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.

EMAIL FILTERING
Mercy Health Partners (mhsnr.org) blocks email addressed to Mercy Health Partners recipients from outside the organization that include attachments of commonly known malicious file types (.ZIP,.EXE, .COM, .BAT, etc.).
Emails addressed to Mercy Health Partners recipients from outside the organization that include .ZIP or .EXE attachments must contain the word "MHP" somewhere in the subject line or they will be blocked.



CONFIDENTIALITY NOTICE: This message, including any attachments, 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.

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.