[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Reset all variables in the program.



Hi.
I am modifying several programs that we run periodically for the number of 
clients.
I have to run every SQR separately for each client. If I have 20 clients, and 4 
programs, I have to run them 80 times. I am modifying SQRs by adding while loop 
in BEGIN-PROGRAM section. Also I added flat file with parameters for each 
client. So on the first iteration program reads first line of the parameter 
file, runs through, produces CLIENT_NAME.PDF. Next line of the parameter file, 
NEW-REPORT another PDF with different client name, and so on until the end of 
the parameter file.
Instead of 80 times I have to run these programs just 4 times.
Everything would be fine if I would not have one problem. After each iteration 
all variables still have values from the previous loop. Sure, I go and reset 
them after each iteration, but there are tons of them in each program, and I 
have to go through each, find them, put into procedure and reset.
My question: Is there a command that would reset all variables in the program 
to 0 or NULL depending on the type?
Thank you.


                
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users