DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: problem with '&' in install scripts on WinXP

  1. #1
    Join Date
    Mar 2001
    Location
    Cologne, Germany
    Posts
    24

    Question problem with '&' in install scripts on WinXP

    Hi!

    I exported a plsql-package to file. This package uses the plsql-web-interface and therefore contains some hardcoded links with parameters to other stored procedures (htp.anchor).

    Example:

    --the code in the script file
    --snip----------
    htp.anchor(curl => 'mypackage.aprocedure'
    ||'?p_parameter_1='||v_param1
    ||'&p_parameter_2='||v_param2
    ,ctext => 'main level'
    );
    --/snip----------

    After running the script, no matter if using TOAD or SQL*Plus, the code in the database looks like this:

    --the code in the stored procedure
    --snip----------
    htp.anchor(curl => 'mypackage.aprocedure'
    ||'?p_parameter_1='||v_param1
    ||'='||v_param2
    ,ctext => 'main level'
    );
    --/snip----------

    In TOAD, pre-run-scanning for substitution vars was switched off. In SQL*Plus, the "set define off" was given. Both did not ask for substitution, so it should work normally. It works on Unix/Linux of course, but I want to solve the problem on WinXP.

    Best regards
    6502

  2. #2
    Join Date
    Jan 2001
    Posts
    515

    Set Variable

    I had a problem like this before. I think you have to say set define off before you try to compile the code.

  3. #3
    Join Date
    Mar 2001
    Location
    Cologne, Germany
    Posts
    24

    set define off

    I entered "set define off" before. If I did not, SQL*Plus would have asked me for the value of the mistaken variables. Furthermore, when using TOAD for running the script, the same problem occurs.

    I could code around the problem by using chr(38) instead of '&', but I want to know the reason for this behaviour.

    6502
    00 c0 LDA #'B'
    02 c0 STA $0400
    05 c0 LDA #'Y'
    07 c0 STA $0401
    0a c0 LDA #'E'
    0c c0 STA $0402
    0f c0 RET

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width