简体   繁体   中英

AS400 sql clear screen

I am new to working with an AS400 green screen terminal and I am running some queries through the STRSQL command. However, I cannot figure out how to clear the terminal screen to get rid of the past queries that were run.

An analogy; if im running command prompt and the screen gets too cluttered, i can run 'cls' to clear the screen. Is there a simular command on AS400?

You can press Shift-F1 (F13) and select option 3 "Remove all entries from current session". Then press Enter to confirm.

EDIT: Short answer: No. <- This is incorrect.

Long answer: you probably don't want to use STRSQL anyway. Use iNavigator (also on its way out) or IBM i Access for Web, which has a database interface. Another IBM offering is Data Studio . Alternatively, you could use any number of third party database tools like SQuirreL to do design work or for ad hoc queries. Basically, anything that uses ODBC / JDBC will work.

As a side note, the platform hasn't been called AS/400 for 20 years. Google searches for AS/400 are increasingly returning worse and worse results. A more modern name (only 10 years defunct) is iSeries. The current operating system is called IBM i, and the IBM web site is called the Knowledge Center . It's true that 'IBM i' doesn't yield the best search results, but that will never change unless we start using the term on the internet :-)

I use STRSQL all the time to prove an SQL statement either in my RPG or Web-based pgm. I don't like clearing the historical statements because sometimes I find a hint, or a technique that I may need to reference again at some point. With all that being said... If your screen is "crowded" and you just want a brand new screen - simply page-down.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM