Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Current_date

    Posted Fri May 24, 2019 10:17 AM
    in 11.1.1 cant able convert to current_date to 'YYYYMMDD' back using sql server 
    tried with different function non of helping .  any suggestions.

    Thanks

    ------------------------------
    Chandra Medarametla
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Current_date

    Posted Fri May 24, 2019 12:08 PM
    please try:
    # timestampMask ( $current_timestamp, 'yyyymmdd' )#
    it will be executed during query planning and result in a literal date in the generated query.

    //Henk

    ------------------------------
    HENK CAZEMIER
    ------------------------------



  • 3.  RE: Current_date

    Posted Fri May 24, 2019 12:42 PM
    Tried , which is  showing the above . 
    Thanks

    ------------------------------
    Chandra Medarametla
    ------------------------------



  • 4.  RE: Current_date

    Posted Fri May 24, 2019 12:50 PM
    Hi Chandra,
    That expression is generating an integer: 20190524 if you want it displayed without the thousand separators you can either try to format it or change the expression to:
    # sq ( timestampMask ( $current_timestamp, 'yyyymmdd' ) )#
    which will cause the generation of '20190524' .
    //Henk

    ------------------------------
    HENK CAZEMIER
    ------------------------------