60
MANUAL DO USUÁRIO DC-2000 / PROGRAMA WINTASKGEN - Revisão 1.5
Exemplos:
Se o TEMP_F for definido como um Campo do Formato, logo
Line No.
Operator
Source Operand
Destination
Operand
1
MOV
"TESTE"
TEMP_F
2
NCR
armazenará o numero de caracteres de "TEST" (4) no TEMP_F
4.3.22 PUT
Sintaxe:
Operator
Source Operand
Destination Operand
PUT
OPERAND1
OPERAND2
Descrição:
Coloca os dados do OPERAND2 no campo atual do registro atual. O número do
campo é controlado no OPERAND1.
Tipo de Dados Operand:
•
OPERAND1
constante numérica, nome do campo
•
OPERAND2
constante numérica, variável numérica, cadeia de caracteres constante, cadeia
de caracteres variável
Exemplos:
Queremos colocar a cadeia de caracteres "MEUGRUPO" no campo 1 do 10º
registro do arquivo "PERSONALIZADO.”
Line No.
Operator
Source Operand
Destination
Operand
1
SEL
PERSONALIZADO
2
SEK
10
3
PUT
1
"MEUGRUPO"
4.3.23 RCV
Sintaxe:
Operator
Source Operand
Destination Operand
RCV
OPERAND1
OPERAND2
Descrição: