08.05.2013 Views

VisualAge RPG Parts Reference - IBM

VisualAge RPG Parts Reference - IBM

VisualAge RPG Parts Reference - IBM

SHOW MORE
SHOW LESS

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

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

MsgText<br />

Devuelve el texto del mensaje del archivo de mensajes del componente lógico para<br />

el identificador de mensaje especificado.<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 />

no<br />

GETATR sí<br />

Ejemplo de formato libre<br />

Obtener el texto del mensaje 0001:<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':'MsgID')=0001<br />

C EVAL text=%getatr('*Component':'*Component':'MsgText')<br />

*<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 'MSGID' 0001<br />

C<br />

*<br />

'*COMPONENT' GETATR 'MSGTEXT' text<br />

296 <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!