06.08.2015 Views

Common Romandie

RPG IV - Common Romandie

RPG IV - Common Romandie

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Structures (V5R4+)A partir de la V5R4 il est possible de définir des structures de données(équivalent de DS) à partir de la commande DCL.Le paramètre STG (storage) doit avoir la valeur *DEFINED pour une« sous-zone ».Le paramètre DEFVAR indique le nom de la variable de référence et laposition de début.DCL VAR(&AAMJ) TYPE(*CHAR) LEN(8)DCL VAR(&AN) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&AAMJ 1)DCL VAR(&MOIS) TYPE(*CHAR) STG(*DEFINED) LEN(2) DEFVAR(&AAMJ 5)DCL VAR(&JOUR) TYPE(*CHAR) STG(*DEFINED) LEN(2) DEFVAR(&AAMJ 7)* Equivalent en RPG :D DSD AAMJ 1 8AD AN 1 4AD MOIS 5 6AD JOUR 7 8AExperia Europe 31 <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!