#g4slkch_leaveChannel

  *//////////////////////////////////////////////////////////////*   
  * #g4slkch_leaveChannel - Leave Channel                        *   
  *                                                              *   
  * 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]                           *   
  *   channel - The Channel Name to leave                        *   
  *   channel_id - The Channel ID to leave.  Only channel or     *   
  *     channel_id is required, not both.                        *   
  *   ccsid - The CCSID to use (1208)                            *    
  *   debug - Turn on Debug (*NO, *YES)                          *    
  *   debug_file - The debug file name.                          *    
  *                 (/tmp/g4g_[id]_leaveChannel.txt)             *    
  *                                                              *    
  *//////////////////////////////////////////////////////////////*    
 D #g4slkch_leaveChannel...                                           
 D                 PR            10i 0                                
 D  out_errMsg                  256    Options(*NOPASS)               

#g4slk_leaveChannel is used to leave a channel on your team.

Returns: 0 for success and -1 for error.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use #g4slk_setValue)

  • id (required) - The Slack ID to use to leave a channel.
  • team (required) The Slack Team to use to leave a channel.
  • channel - The channel name to leave.
  • channel_id - The channel id to leave. Only a channel name or id is required, not both.
  • 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]_leaveChannel.txt.