Using the DISK driver and specifying a dataset name in the TCPHOST keyword:
NODE GRAVALOG,DISK1,GROUP=1,ACQUIRE=WORK,TCPDRIV=DISK,
PURGE=NO,RELEASE=NOWORK,CLASS=A,
TCPHOST='DSN=CASPOOL.ESF.&SYSNAME..ESFLOG,MEMBER=+1,DISP=NEW'
However, when a file is created it goes to a different dataset name:
ESF954 File 53 on printer GRAVALOG - DSN=OMVSKERN.GRAVALOG.TCPTRACE.F000053
Release : 12.0 14.0
Component : CA Spool
When using the Data Set Print driver, the keyword to indicate the name of the dataset cannot be abbreviated. It has to be DSNAME instead of DSN.
NODE GRAVALOG,DISK1,GROUP=1,ACQUIRE=WORK,TCPDRIV=DISK,
PURGE=NO,RELEASE=NOWORK,CLASS=A,
TCPHOST='DSNAME=CASPOOL.ESF.&SYSNAME..ESFLOG,MEMBER=+1,DISP=NEW'