G4SLKSNDM

The G4SLKSNDM command is used to send a message to a specific channel on your team.

When a message is sent the action will be logged in the file G4SLKMHPF file.  The message itself will be stored in the IFS as a stream file named g4slk_log_<id>.txt where <id> is a unique ID.  The directory that the log file is placed in can be changed using the Log Directory parameter.

                               Send Message (G4SLKSNDM)                         
                                                                             
 Type choices, press Enter.                                                  
                                                                             
 ID . . . . . . . . . . . . . . .  ___________________________________________________________________
 Team . . . . . . . . . . . . . .  ___________________________________________________________________
 
Channel  . . . . . . . . . . . .  ___________________________________________________________________
  Message  . . . . . . . . . . . .  ___________________________________________________________________
 Message type . . . . . . . . . .   *STD          *STD, *ME                
 Post message as who  . . . . . .   *USER         *USER, *BOT              
 User Name  . . . . . . . . . . .  ___________________________________________________________________
 Thread Timestamp . . . . . . . .  ___________________________________________________________________
 Log Directory  . . . . . . . . .  ___________________________________________________________________       
 
 
                                                                           
                            Additional Parameters                            
                                                                             
 CCSID  . . . . . . . . . . . . .   1208          Number
 Debug  . . . . . . . . . . . . .   *NO           *YES, *NO       
 Debug File . . . . . . . . . . .   __________________________________________________________________

  • ID - Enter the Slack ID you wish to use to send a message.
  • Team - Enter the team associated with the ID to send a message.
  • Channel - Enter the channel name or ID you wish to send the message to.  If the channel is other than  the default "#general" you must join the channel first using G4SLKJCH.
  • Message - Enter the message you wish to send.
  • Message Type - Enter *STD to send a standard message or *ME to send a "me" message.
  • Post message as who - Enter *USER to send the message using your ID or *BOT to send the message as a slack bot.
  • User Name - Enter an optional user name that will be used to send the message when specifying a user message as *BOT.
  • Thread Timestamp - Provide the thread timestamp from another message to make this message a reply to that message.
  • Log Directory - Enter the fully qualified path of the directory to store log files.  By default this is /tmp.
  • CCSID - Enter a CCSID for data translation.
  • Debug - Enter *YES to debug this command.
  • Debug File - Enter the fully qualified path and name of the IFS file to store the debug data.  If left blank the default of  /tmp/g4slk_<id>_sendMessage.txt. where <id> is the ID associated with the request.
Comments