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

how to view the output of the help command more freely?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
wangjiyi

New User


Joined: 14 Aug 2006
Posts: 12
Location: Shanghai, China

PostPosted: Mon Sep 25, 2006 7:15 am
Reply with quote

when i use the help command such as 'help permit', the output of this command is red font, and any key I pressed will make the output paged.
When i want to see the previous output, i have to reenter the help command. Can you have some methods to print the output and save it. or any combined keys to brouse previous page?
Thank you.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Sep 25, 2006 10:57 am
Reply with quote

All help screens are actually a copy of the fine manuals. Just read the fine manual.

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

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Mon Sep 25, 2006 9:48 pm
Reply with quote

Use TSO cammand "BACK"
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Mon Sep 25, 2006 11:16 pm
Reply with quote

Hi Wangjiyi,

This is a great solution for your problem. This is an OUTTRAP REXX program.

Place this REXX code in an authorized REXX library under the name "O":

Code:

***************************** Top of Data *************************
/* REXX -------------------------------------------------------*/ 
/* TRAP AND EDIT TSO COMMAND OUTPUT                            */ 
/* EDIT TSO --  RUN A TSO COMMAND AND PLACE THE TRAPPED        */ 
/*              OUTPUT IN ISPF-EDIT                            */ 
/*  PLACE A TSO COMMAND ON THE COMMAND LINE AND PRESS THE KEY  */ 
/*-------------------------------------------------------------*/ 
ARG TSOCMD                        /* PULL TSO COMMAND ISSUED   */ 
IF TSOCMD = '' THEN DO            /* CHECK IF NULL WAS ENTERED */ 
  SAY;SAY                         /* GIVE USER INFORMATION     */ 
  SAY 'SYNTAX =>   TSO O TSO-COMMAND '
  SAY;                       
  CALL GITOUT RC=99                                               
END                                                               
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"     /* PREP FOR ERRORS */ 
ADDRESS TSO                                                       
DDNM = 'DD'||RANDOM(1,99999)          /* CHOOSE RANDOM DDNAME  */ 
STUFF = MSG(OFF)                     
"ALLOC FILE("||DDNM||") UNIT(SYSDA) NEW TRK SPACE(35 25) DELETE",       
" REUSE LRECL(140) RECFM(F B) BLKSIZE(8960)"                           
STUFF = MSG(ON)                       /* OK, SAY SOMETHING     */       
/*                                  */                                 
/* ISSUE TSO COMMND AND TRAP OUTPUT */                                 
/*                                  */                                 
STUFF=OUTTRAP(LINE.)                  /* SET THE TRAP          */       
TSOCMD                                /* PERFORM THE COMMAND   */       
STUFF=OUTTRAP('OFF')                  /* CLOSE TRAP            */       
/* WRITE TO TEMP FILE  */                                               
"EXECIO" LINE.0  "DISKW" DDNM "(STEM LINE. FINIS"    /* WRITE TO FILE */
ADDRESS ISPEXEC "LMINIT DATAID(TEMP) DDNAME("||DDNM||")"               
ADDRESS ISPEXEC "EDIT DATAID("||TEMP||")" /* NOW EDIT THE FILE   */     
ADDRESS ISPEXEC "LMFREE DATAID("||TEMP||")" /* LEAVE THE FILE    */     
STUFF = MSG(OFF)                                                       
"FREE FI("||DDNM||")"                     
ADDRESS                                                                 
GITOUT:                                                                 
EXIT         


When you issue your help command, enter as:
Code:

TSO O HELP PERMIT


Your output should be displayed in an ispf edit session.

The "O" command will work with any RACF command, any HELP command, or any TSO prefixed command where output is scrolled through by pressing the enter key:
Back to top
View user's profile Send private message
wangjiyi

New User


Joined: 14 Aug 2006
Posts: 12
Location: Shanghai, China

PostPosted: Tue Sep 26, 2006 6:18 am
Reply with quote

Oh, thank you very much.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top