Script() Function

Optuma Forums Optuma Scripting Script() Function

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #62079
    AvatarMichael
    • Topics: 5
    • Replies: 2
    • Posts: 7

    I am testing how to call a saved script.   Below is my test:     Any help is appreciated………thanks

    Below is the base script to be called.  This base script output gives an accurate result
    Base Script Name is:    EPS Current QuarterYear TTM MS
    Value = DATAFIELD(Month(PERIODAMOUNT=1), FEED=FD, FIELD=EPS);
    Value[0]

    Below is the Script() function to call the base Script above gives a result of zero.   Not sure why it does not give the same result as above script.
    C=SCRIPT(SCRIPTNAME=EPS Prior Quarter 3 quarters ago TTM MS);
    C

    #62081
    AvatarMatthew
    • Topics: 4
    • Replies: 12
    • Posts: 16

    Hi MIchael – I don’t know anywhere near as much as others here, but I’ll suggest that you’re not calling the script name that you defined as your Base Script.

    So you’d have:

    C=SCRIPT(SCRIPTNAME=EPS Current QuarterYear TTM MS);
    C

    #62083
    AvatarMichael
    • Topics: 5
    • Replies: 2
    • Posts: 7

    Thanks Matt,  I still get zeros when I use the adjusted script.  Not sure what I am doing wrong.

    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close