View previous topic :: View next topic
|
Author |
Message |
rgupta
New User
Joined: 01 Feb 2008 Posts: 2 Location: Gurgaon
|
|
|
|
Hi,
I am working in ASM in MF environment and have some daubts regarding displays in assembler.
Can you please help me out how to put displays in assembly language.Previously i was doing this with WTO statement but I think this will directly put the o/p to the operator so its not safe enough to use this.
Also I have doubts like how to display the contents of a register.
Awaiting ur reply
Rohit |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If your Assembler program is "LE" compliant, then review the Callable Service routine "CEEMOUT".
As you've probably experienced, WTO's are not the ideal way to go.
Regards,
Bill |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Convert a register to display content -
Code: |
FWORD DS F
DS CL1
DSPLY DS CL8
DS CL1
*
ST Rx,FWORD
UNPK DSPLY(9),FWORD(5)
MVZ DSPLY(8),=XL8'00'
TR DSPLY(8),=CL16'0123456789ABCDEF'
|
HTH....
Regards,
Bill |
|
Back to top |
|
|
rgupta
New User
Joined: 01 Feb 2008 Posts: 2 Location: Gurgaon
|
|
|
|
Hey Bill...Thanks a lot...I think I should try this |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
There might be a way to call an LE-compliant COBOL sub-program from Assembler, which issues a DISPLAY.
Take a look at the LE component module "CEEPIPI", which allows a non-LE compliant program to create an LE environment.
However, I'm assuming that you're speaking about Batch Assembler and NOT CICS Assembler, because "CEEPIPI" can only be used in Batch.
If this is CICS Assembler, then you can probably route messages to DD "MSGUSR", which is normally defined to one or more Extrapartition TDQ's.
Check with your CICS Sys Prog as to whether there's a TDQ (IE: CSMT) that you can route to (WRITEQ TD), which is not an indirect to the Console.
HTH....
Regards,
Bill |
|
Back to top |
|
|
|