|
Just wanted to let the ;list know that I got the cgi cobol to finally work today! It is printing the report to the screen. I figured out that instead of the cgi to format the numbers, let cobol do it with the Pic ZZZ,ZZ9. I move the count variable which is a S9(6) to the "Z" variable and then move that to the varval(v1) variable and then call the procedure like the one below. It inserted the commas in the right place and printed zeroes when needed. WS-REG-CNT is the S9(6) variable TREGULAR IS THE PIC ZZZ,ZZ9 variable. Here is an example: * Set variable /%REGULAR%/ compute v1 = v1 + 1 move 'REGULAR' to varnm(v1) move zero to tregular Move WS-REG-CNT to TREGULAR Move tregular to varval(v1) call procedure 'TICHECKR' using varval(v1) varln(v1). This has definitely been a learning experience. My supervisor just wants me to tweak it a little to make it look a little better. But all in all. I am VERY Happy!! :) Diane Nott
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.