Bonjour,
Je travaille sur AS/400. Je viens de commencer à apprendre le REXX.
Je ne trouve pas la commande INCLUDE ou équivalent.
Comment faire pour ça ?
Version imprimable
Bonjour,
Je travaille sur AS/400. Je viens de commencer à apprendre le REXX.
Je ne trouve pas la commande INCLUDE ou équivalent.
Comment faire pour ça ?
Bonjour
Ouch :calim2:
Rexx/400, voilà un langage que je n'ai pas touché depuis au moins 15 ans. C'est du masochisme de ressortir cette antiquité :mrgreen:
Je ne me rappelais même plus qu'il existait, et le seul endroit où je me rappelle l'avoir vu utilisé en prod, c'est dans les procédures d'install de CGIDEV2 et MMAIL.
Bref, je la ferai courte, à moins qu'on vienne me contredire, le Rexx/400 qui est uniquement interprété, contrairement à la version z/OS, ne possède pas de moyen de faire un include (%include dans la version compilée).
Je me servais un peu de REXX sur du MAINFRAME mais sur de l'AS400 je n'en ai pas croisé … Je n'en vois pas vraiment l'utilité en fait tellement il existe de commandes en natif.
Je pose la question autrement.
Comment dans PROG1.REXX appeler une fonction MaFonction qui se trouve dans PROG2.REXX ?
Avec PROG1.REXX membre de BIB1/QREXSRC et PROG2.REXX dans BIB2/QREXSRC.
Alors je sais que je me répète, mais Rexx/400 est conservé pour compatibilité.
Il n'est plus développé depuis la version 4 du système, c'est pour dire combien il est vieux. Je ne vois donc pas d'intérêt à utiliser cet outil.
Si tu veux vraiment t'y mettre malgré tout, consultes ces 2 liens, qui pointent sur la doc originelle :
Programmer's Guide
Reference
Pour ce qui est des fonctions externes c'est possible, mais c'est tordu et tu ne peux pas dire où chercher. C'est lui qui prend la 1ère occurrence qu'il trouve avec le nom correspondant (regarde dans Reference, à partir de la page 75).