I have the following query in iSeries SQL that I output to a file.
SELECT SSLOTMAK, SSLOTMDL, SSLOTYER, sum(SSCOUNT)
FROM prqhdrss
GROUP BY SSLOTMAK, SSLOTMDL, SSLotyer
HAVING sum(SSCOUNT) > 4
ORDER BY SSLOTMAK, SSLOTMDL, SSLOTYER
When I run it, the created field will be the sum (SSCOUNT) - this is the 31 Packed field. This does not allow me to send it to a computer. How to force SQL to create a field as an unpacked field.
source
share