A HostGroup is allowed in the From - Host/To - Host attribute of a FileTransfer job.
However, you can't use it in both From-Host and To-Host. It has to be one or the other.
To use the agents in a HostGorup in a FileTransfer, you can do the following:
*Example for assigning an Agent to 'To - Host' from a HostGroup*
1) on "FileTransfer" tab, don't define any To - Host (leave it to just <WIN>)
2) on "Process" tab, process the HostGroup using Prep_Process_AgentGroup, check if agent is active, then set the To - Host
:SET &HND# = PREP_PROCESS_AGENTGROUP("HOSTG.WIN.CCH",,ALL):PROCESS &HND#: SET &AGENT# = GET_PROCESS_LINE(&HND#,1): SET &STATUS# = GET_PROCESS_LINE(&HND#,2): PRINT "Agent: &AGENT#": PRINT "Status: &STATUS#": IF &STATUS# = "Y": PUT_ATT FT_DST_HOST = &AGENT# : ENDIF:ENDPROCESS
The list of FileTransfer attributes can be found here:
Documentation for PRE_PROCESS_AGENTGROUP: