Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Terminal command MB with WINDOW

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Nov 10, 2009 11:20 pm    Post subject: Terminal command MB with WINDOW
Reply with quote

Hi,

I have solution to my problem however do not have right justification to the answer I have.

Let me give a short description.

MAP1: LS = 20, PS=75

SUBPROGRAM

DEFINE WINDOW 24*80

SET CONTROL ‘MB’
INPUT WINDOW = ‘NOTE’ USING MAP ‘MAP1’
-----------------
--------------
---------
FETCH ‘PROGRAM1’
----------
--------
END

PROGRAM1 executes the map ‘MAP2’ with LS=24, PS=80
MAP2 has 22 lines of text on it. And standard keys are ON.

When I trigger the application and reach to the MAP2, what I see is

LINE 1-21: Map text
Line 22: PF key
Line 23: Map text
Line 24: Blank – Probably because there is no error on the map. No message.

When I comment the statement executing the terminal command (in the SUBPROGRAM above)
* SET CONTROL ‘MB’

What I see is

LINE 1-22: Map text
Line 23: Blank - Probably because there is no error on the map. No message.
Line 24: PF keys

This is what I was struggling for.

Can some one reason out what was the impact of SET CONTROL ‘MB’?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Nov 11, 2009 3:01 pm    Post subject:
Reply with quote

The MB terminal command causes the message line to be the bottom line of the screen.

Tip: Try the MB/MT terminal commands from your NEXT line...

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Wed Nov 11, 2009 10:18 pm    Post subject:
Reply with quote

Hi,

I have concluded with a solution with a strong assumption about terminal command MB.

First the assumption:

In any Natural application which executes a series of programs/sub programs, once a terminal command is executed, the same terminal command can be overridden by another terminal command(same purpose) with different values. But not with the same value.
Example:
SET CONTROL 'MB'
This command can not be overridden by the same command again,
SET CONTROL 'MB' (In any other programs/sub programs all execute for the same application in any level).

Why I am so optimistic about my assumption?

In my subprogram, as I mentioned, the MAP is defined with 20 lines and window is defined as below

DEFINE WINDOW MEMENTO SIZE 24*80 BASE 1/1 TITLE 'MEMENTO' CONTROL WINDOW --------------------------> Even if it is default
SET CONTROL ‘MB’
When my map is sent to the terminal within this window, the line # 22 is reserved for the message line. This is set for the terminal as long as my session is ON or active (application active).
In case a separate map with LS=24 is executed with SET CONTROL ‘MB’, this terminal command is not going to effect as there is no change in this command compared to the last terminal command executed for message line. This will be simply ignored though executed.

Now what I am doing to override the first terminal set up for the message line?

Once the first map with window is executed, I set the following commands before sending the next Map

SET CONTROL ‘M23’
SET CONTROL ‘YH’
SET CONTROL ‘YP’
SET CONTROL ‘Y24’

This is now the new terminal set up.
This reserved the line 23 for message (M23),
Protects (YP) my PF Key with only 1 line (YH) occupancy ---> (My PF Keys are perfectly sitting in 1 line) and the line number for PF key is 24.

All other programs/subprograms in all level in the same active Natural session follow the same rule.

Please correct me if my assumption is wrong, or my conclusion on is out of any other reason
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us