Sunday, 17 September 2017

%CHAR Example

      * Program     :·CharR
      * Description :·%Char() Example
      *
      * %Char()
      * Input  Parm1:·Number, date, time, timeStamp
      *        Parm2:·date or time format (When Parm1 is date or time)
      *
      * Output      :·Character String for Input parameter
      *
      *==========================================================
      *

     C
      /Free
           Dsply %Char(5) ;                    // '5'

           Dsply %Char(55.55) ;                // '55.55'

           Dsply %Char(d'2012-11-11' : *ISO) ; // '2012-11-11'

           Dsply %Char(d'2012-11-11' : *ISO0) ; // '20121111'
      /End-Free
     C                   SetOn                                        LR

No comments:

Post a Comment