× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am working on converting programs from a S/36 (CBL36) mode to AS400 (CBL) 
mode.  I've run into something that I have not been able to figure out.  
Hopefully someone can help me. 

How do you get the position the cursor is at when the enter or a function key 
is pressed.  This is how I have it set up on the S/36.   

                                                                  
     SELECT SCREEN-FILE    ASSIGN TO WORKSTATION-OR001FM          
                           ORGANIZATION TRANSACTION               
                           CONTROL-AREA IS SCREEN-CONTROL-AREA.   
                                                                  
       01  SCREEN-CONTROL-AREA.                                        
           05  KEY-FUNCTION            PIC 99.                         
               88  ENTER-KEY              VALUE 0.                     
               88  CMD-KEY1               VALUE 1.                     
               88  CMD-KEY2               VALUE 2.                     
               88  CMD-KEY3               VALUE 3.                              
         
           05  TERMINAL-ID             PIC X(2).                       
           05  RESERVED                PIC X(8).                       
           05  CURSOR-ROW              PIC 999.                        
           05  CURSOR-COL              PIC 999.    
              
Thanks so very much. Please send any responses to pcampbell@xxxxxxxxxxxx

Phil Campbell  :)                              



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.