|
Hello, In RPGILE pgm I am trying to select records within date range entered from the screen. It is 4 separate fields in the file (SNSCC, SNSYY, SNSMM, SNSDD). I am trying following code, but it is does not work correctly. I was trying to combine the date in one field, but it did not work either. I do not use SQL, any idea will be appreciated. Thank you. C/EXEC SQL C+ DECLARE C1 CURSOR FOR C+ SELECT all * FROM PFfile C+ AND SNSCC >=:FC AND SNSCC <=:TC C+ AND SNSYY >=:FY AND SNSYY <=:TY C+ AND SNSMM >=:FM AND SNSMM <=:TM C+ AND SNSDD >=:FD AND SNSDD <=:TD
As an Amazon Associate we earn from qualifying purchases.
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.