IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  query in QUIP 1.6

    Posted Mon May 06, 2002 07:51 PM

    Hi,
    I am a newbie.I am trying to run the foll query in Quip v1.6 . The error I am getting is as follows:
    ----------------------------------------
    Encountered “gre” at line 1, column 10.
    Was expecting one of:

    “*” …


    -----------------------------------------



    function gre(AnyElement $e) returns integer {
    return
    sum($e/score/verbal + $e/score/quant + $e/score/anat)
    }
    for $x in distinct(document(“app_data.xml”)//country)
    let $totalapp :=
    (
    for $c in document(“app_data.xml”)//applicant
    where $c/address/country/text()=$x/text()
    return $c
    )
    let $totaladmit :=
    (
    for $c in $totalapp
    where $c/final/text()=“Admit”
    return $c
    )
    return
    (
    {
    {count($totaladmit)} ,{avg(gre($totaladmit))}, $x
    }

    )


    Thanks for help in advance.

    -KM


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: query in QUIP 1.6

    Posted Mon May 06, 2002 11:16 PM

    found the error…its working now…

    –KM


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: query in QUIP 1.6

    Posted Tue May 07, 2002 09:54 AM

    BTW: why aren’t you using the latest Quip version.
    The language of Quip 1.6.1 is rather outdated.
    The working group has made a lot of changes
    to the draft since then.

    Sven Eric


    #API-Management
    #Tamino
    #webMethods