View previous topic :: View next topic |
Author |
Message |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Mon Feb 26, 2007 4:38 am Post subject: Handle TCTUA in COBOL |
|
|
gentlements,
Does anyone know to retrieve data from TCTUA with an application cobol?
e.g.
exec cics inquiry terminal USERAREA(ptr-ref)
end-exec
and then ? how may i displaying or manipulating the information? |
|
Back to top |
|
 |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Tue Mar 13, 2007 4:24 am Post subject: |
|
|
i answer myself:
Code: |
EXEC CICS ASSIGN TCTUALENG (TCTUA-LENGTH)
END-EXEC.
IF TCTUA-LENGTH LESS THAN 56
MOVE 'KO' TO ......
GO TO BYEBYE.
EXEC CICS ADDRESS TCTUA(ADDRESS OF TCTUA-AREA)
END-EXEC.
|
or
Code: |
EXEC CICS INQUIRE TERMINAL (ZTERMID)
NATURE (ZTERMID-NATURE)
DEVICE (ZTERMID-DEVICE)
REMOTESYSTEM (ZTERMID-REMSYS)
USERAREA (ZTERMID-TCTUAPTR)
USERAREALEN (ZTERMID-TCTUALEN)
END-EXEC.
SET ADDRESS OF TCTUA-AREA TO ZTERMID-TCTUAPTR. |
|
|
Back to top |
|
 |
|
|