IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to put displays in ASM


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rgupta

New User


Joined: 01 Feb 2008
Posts: 2
Location: Gurgaon

PostPosted: Sat Feb 02, 2008 7:50 am
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 02, 2008 8:52 am
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 02, 2008 9:03 am
Reply with quote

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
View user's profile Send private message
rgupta

New User


Joined: 01 Feb 2008
Posts: 2
Location: Gurgaon

PostPosted: Sat Feb 02, 2008 9:05 am
Reply with quote

Hey Bill...Thanks a lot...I think I should try this icon_smile.gif
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 02, 2008 8:36 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Monitoring production job progress. N... JCL & VSAM 4
No new posts Remove unnecessary displays in cobol COBOL Programming 3
No new posts Capturing Cobol Program Displays TSO/ISPF 1
No new posts Displays after EOF not working CA Products 5
No new posts Panel displays last row as soon as ta... TSO/ISPF 6
Search our Forums:

Back to Top