08.05.2013 Views

VisualAge RPG Parts Reference - IBM

VisualAge RPG Parts Reference - IBM

VisualAge RPG Parts Reference - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

AppData<br />

Contiene datos globales a los que cualquier componente puede hacer referencia.<br />

Este atributo proporciona una alternativa a la transferencia de parámetros que, en<br />

caso contrario, deben declararse.<br />

Tipo Serie<br />

Se aplica a los componentes<br />

*Componente lógico<br />

Códigos de operación<br />

SETATR<br />

Operativo en tiempo de ejecución<br />

sí<br />

GETATR sí<br />

Ejemplo de formato libre<br />

*...1....+....2....+....3....+....4....+....5....+....6....+....7....+....8<br />

CSRN01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq----<br />

*<br />

C EVAL %setatr('*Component': '*Component': 'AppData')<br />

C = NData<br />

C EVAL TmpFld=%getatr('*Component':'*Component':<br />

C<br />

*<br />

'AppData')<br />

Ejemplo de formato fijo<br />

*...1....+....2....+....3....+....4....+....5....+....6....+....7....+....8<br />

CSRN01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq----<br />

*<br />

C '*COMPONENT' SETATR NData 'APPDATA'<br />

C<br />

*<br />

'*COMPONENT' GETATR 'APPDATA' TmpFld<br />

72 <strong>VisualAge</strong> <strong>RPG</strong> Manual de consulta de componentes

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

Saved successfully!

Ooh no, something went wrong!