The shell (/bin/sh to be specific) writes all commands into its history file 
.sh_history. This is kept across sessions. Command line editing when in a ssh 
(telnet/rlogin) shell session will use this file, as well as the "fc" and 
"history" shell commands.

When using TSO/OMVS (the 3270 interface), the OMVS TSO command processor is the 
interface between the shell and your 3270 terminal. It is OMVS that keeps a 
history of everything entered *in memory* only. Once you logout, OMVS command 
processor will terminate and release its storage. There goes the OMVS command 
history.
Note that .sh_history is still feeded when logged in through OMVS, but OMVS has 
no access to this file.
HTH
 --
Peter Hunkeler





On 25 May 2015 at 12:55, Ken MacKenzie <[email protected]> wrote:

> Hi All,
>
> Something's puzzled me for some time and I wonder if it is a quirk at this
> site.
>
> When I go into OMVS and enter a command, I can then press F12 to recall
> it.  Repeatedly pressing F12 brings back older commands.  That's great but
> when I go out and come back in, pressing F12 does nothing until I've
> entered a command.
>
> I notice that there is a file called .sh_history.mysuerid which contains
> my command history.
>
> My question, then, is why is my command history kept if I can't use it? Or
> is there something set up incorrectly here?
>
>
> Ken MacKenzie
> Pramerica Systems Ireland Limited
> is a private company limited by shares
> incorporated and registered in the Republic of Ireland with registered
> number 319900
> and registered office at 6th Floor, South Bank House, Barrow Street,
> Dublin 4, Ireland.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>



--
Mike Shorkend
[email protected]
www.shorkend.com
Tel: +972524208743
Fax: +97239772196

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to