SQR Developement - Dynamic Report Output
Can an SQR be coded so that the number of output reports it produces is decided dynamically - each run might produce a different number of output reports, based on some criteria. (The same report, but based on a different code - in this case state of employee residence.)
For example I have an SQR that creates a wage report based on our state of residence (VT).
I want to code the SQR to now look for (other) state of residence, and produce however many output reports it needs to, based on the state code. So this quarter it might be 2 reports, for 2 different state. Next quarter it might be 6, etc. Employees come and go and state of residence changes constantly. Also the reports FTP to a directory so would need that to happen for however many reports are produced.