×
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.
Two queries below with results. The first is a straight file dump. The second is showing one line per server, aggregating the Pct_Used column for the server. (By the time I'm done, there will be 30 servers total.) I need the Pct_Used values put into their own column because, when I run this in ACS, I can copy the results into a spreadsheet, and the multiple values will each be pasted into their own cell. If I copy the results from the last query and paste them into my spreadsheet, the values get pasted into their own cells, but in a single column. If the Pct_Used values in the last query are each in their own cell, copy / pasting them into the spreadsheet will result in three rows and four columns (Server, Pct_Used1, Pct_Used2, Pct_Used3).
I suspect LISTAGG isn't what I'm looking for, but I'm stumped as to what the solution is. Well, LISTAGG *could* work, if I could specify a tab character vs. ', ' as the second argument. Not sure what EBCDIC value would translate as a tab character when pasting to Excel.
select Server,
ListAgg( Pct_Used, ', ' ) within group (order by ASP_NUMBER) as All_Pct_Used
from qtemp/WRKASP
Group by Seq, Server; (Results below)
Server All_Pct_Used
ABCAA1 56.550
TAA01B 24.670, 80.210
PAB03B 23.040, 71.440, 83.440
*** CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ***
As an Amazon Associate we earn from qualifying purchases.
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.