#g4slkch_getChannelList

*//////////////////////////////////////////////////////////////*

  * #g4slkch_getChannelList - Get Channel List                   *   
  *                                                              *   
  * Input:                                                       *   
  *   in_parameter (required) - The parameter name.              *   
  *   in_value (required) - The value of the parameter.          *   
  *                                                              *   
  * Output:                                                      *   
  *   out_errMsg - The error message (if error exists).          *   
  *                                                              *   
  * Returns:                                                     *   
  *   0 for success, -1 for error.                               *   
  *                                                              *   
  * Settable Variables ([r]=required)                            *   
  *   id - The Slack ID to use [r]                               *   
  *   team - The Slack Team to use [r]                           * 
  *   ccsid - The CCSID to use (1208)                            * 
  *   debug - Turn on Debug (*NO, *YES)                          * 
  *   debug_file - The debug file name.                          * 
  *                 (/tmp/g4g_[id]_getChannelList.txt)           * 
  *                                                              * 
  *//////////////////////////////////////////////////////////////* 
 D #g4slkch_getChannelList...                                      
 D                 PR            10i 0                             
 D  out_errMsg                  256    Options(*NOPASS)            

#g4slk_getChannelList is used retrieve a list of channels that are available. The results will be placed in file G4SLKCLPF keyed by your ID and Team.

Returns: The number of channels retrieved or -1 for an error.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use #g4slk_setValue)

  • id (required) - The Slack ID to use to list channels.
  • team (required) The Slack Team to use to join list channels.
  • ccsid - The CCSID to use. The default is 1208.
  • debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.
  • debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4slk_[id]_getChannelList.txt.