Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to view the output of the help command more freely?
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: 2360
Location: Israel

PostPosted: Mon Sep 25, 2006 10:57 am    Post subject:
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    Post subject: Re: how to view the output of the help command more freely?
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    Post subject: Re: how to view the output of the help command more freely?
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    Post subject: Re: how to view the output of the help command more freely?
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us