Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to put displays in ASM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
rgupta

New User


Joined: 01 Feb 2008
Posts: 2
Location: Gurgaon

PostPosted: Sat Feb 02, 2008 7:50 am    Post subject: How to put displays in ASM
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
References
Bill O'Boyle

Senior Member


Joined: 14 Jan 2008
Posts: 345
Location: Orlando, FL, USA

PostPosted: Sat Feb 02, 2008 8:52 am    Post subject: How to put displays in ASM
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

Senior Member


Joined: 14 Jan 2008
Posts: 345
Location: Orlando, FL, USA

PostPosted: Sat Feb 02, 2008 9:03 am    Post subject:
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    Post subject: Reply to: How to put displays in ASM
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

Senior Member


Joined: 14 Jan 2008
Posts: 345
Location: Orlando, FL, USA

PostPosted: Sat Feb 02, 2008 8:36 pm    Post subject: How to put displays in ASM
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1