1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Help needed for automating some part of code in SQR.

Discussion in 'Software Development' started by geek123, Jul 15, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. geek123

    geek123 Thread Starter

    Joined:
    Dec 7, 2011
    Messages:
    44
    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.
     
  2. geek123

    geek123 Thread Starter

    Joined:
    Dec 7, 2011
    Messages:
    44
    Please help me regarding this.
     
As Seen On
As Seen On...

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.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1061108