Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

Help needed for automating some part of code in SQR.


(!)

geek123's Avatar
geek123 geek123 is offline
Member with 44 posts.
THREAD STARTER
 
Join Date: Dec 2011
Experience: Beginner
15-Jul-2012, 09:06 AM #1
Question Help needed for automating some part of code in SQR.
Hello all,

I am working on SQR (Structured Query Reporting) language. I develop SQR programs. I need something like a vbscript or any other script that will write debug statements automatically to the sqr program.
I need debug statements for the begin-select,begin-sqr code blocks.
For example, for begin-select statements I need something like this :-

Code:
begin-select
emplid
name
city
from personaltable
where emplid='xyz'
For the above code debug statements can be like #debugs show ' emplid is' emplid. In the silimar way for all the other selected fields it should write this debug statement with the switch 's' ie; #debugs. For inserts and updates it would be like #debugi and #debugu respectively. So for the fields which are being selected,updated or inserted the debug statements should be written automatically before the begin-select and begin-sql blocks. i.e;

Code:
#debugs show 'emplid' $emplid
#debugs show 'name' $name

begin-select
emplid
name
from personaltable
where emplid='xyz'
Can anyone please help me in writing these debug statements automatically to the program by identifying those begin-sql and begin-select blocks using some kind of scripting language like a vbscript or using the SQR itself.

Thanks a lot in advance.

Last edited by geek123; 16-Jul-2012 at 03:52 AM..
geek123's Avatar
geek123 geek123 is offline
Member with 44 posts.
THREAD STARTER
 
Join Date: Dec 2011
Experience: Beginner
18-Jul-2012, 04:07 AM #2
Please help me regarding this.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
sqr

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑