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



Host variables missing colon character.

Change: irpgm = case when #crfrnseqp = 0 then irpgm else #crfrnseqp end
To: irpgm = case when :#crfrnseqp = 0 then irpgm else :#crfrnseqp end

-----Original Message-----
message: 1
date: Mon, 9 Mar 2020 14:43:56 +0000
from: M?nica Anast?cio <monicaanastacio@xxxxxxxxx>
subject: Re: SQL ignore part of WHERE if parameter is null

exec sql // Declara o Cursor
declare c_tcinrely scroll Cursor for
Select irseq, irdseq, irdlsq, irpgm, iravis, tcirvins, irdatu, irhoru
From manastacio/tcinrely
where irseq >= :#crfrnseqp and
irpgm = case when #crfrnseqp = 0 then irpgm else #crfrnseqp end
Order By irseq, irdseq;
exec sql // Abre o Cursor
open c_tcinrely;
exec sql // Consulta a Informa??o e
Guarda na DS
fetch next from c_tcinrely for :wnnreg rows into :wsele;

sqlcode -501 in cursor <http://ibmmainframes.com/about55937.html>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.