SOLVE

  • 1.  FTS - API Query Schedule Status

    Posted Sep 20, 2017 12:49 PM

    Is there a way within one of the APIs to query the file schedule extended status? For instance, if a file transfer schedule is setup to receive 10 files over a 4 hour period, how can I programmatically query the File Transfer Resource Monitor and get the current COMP: count. Is there a better way to do this?    



  • 2.  Re: FTS - API Query Schedule Status
    Best Answer

    Broadcom Employee
    Posted Sep 21, 2017 12:23 PM

    Hi David,

     

    If you want to read the Extended Display for a FT Schedule programmatically (we're assuming that means from NCL),

     here is the easiest way to do so:

     

    &CALL PROC=$RMSTMS SHARE=($RMSTEXTDISP) +       

          PARMS=(SERVICE=SET,+                      

                 SYSNAME=&1,+                       

                 VERSION=&2,+                       

                 CLASS=24,+                         

                 NAME=&3)                           

    &IF &RETCODE NE 0 &THEN +                       

       &WRITE DATA=RET=&RETCODE SYSMSG=&SYSMSG      

    &ELSE +                                         

       &WRITE DATA=RET=EXT.DISPLAY=&$RMSTEXTDISP    

                                                     

    When we run that providing SYSNAME, VERSION and NAME as &1 &2 and &3 we get back a line:

     

    EXT.DISPLAY=PREP 22.48 REQ:0001 COMP:0000 FAIL:0000

     

    Where PREP 22.48 REQ:0001 COMP:0000 FAIL:0000 is the extended display and COMP:0000 is word 4 (this is what you are looking for).

     

    If you want to do any parsing or further processing, you will need to add the code for that yourself; we are just providing a way of accessing the information.

     

    I hope this is helpful.

     

    Regards,

    Lori Thomas

    Sr Support Engineer