06.08.2015 Views

Common Romandie

RPG IV - Common Romandie

RPG IV - Common Romandie

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fonctions SQL en RPGIl est possible d’utiliser les fonctions SQL pour alimenter des variablesRPG à l’aide de l’instruction SET :Exemples• DAYNAME() retourne le nom du jour (Lundi …) (V5R3)• Curdate() retourne la date du jour• WEEK_ISO() retourne le n° de semaine suivant la norme ISOD Week s 2S 0D joursemaine s 10Ac/EXEC SQL SET :joursemaine = DAYNAME(curdate())c/END-EXECC/EXEC SQL SET :WEEK = WEEK_ISO(‘2010-06-15’)C/END-EXECExperia Europe 55 <strong>Common</strong> <strong>Romandie</strong> 15/06/2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!