My command source has this first line:
CMD PROMPT('Collect environment info') TEXT(*CMDPMT)
Rules.mk has:
COLENVINF.CMD: COLENVINF.CMD COLENVINF.PGM
COLENVINF.CMD: PGM=COLENVINF
When building, the generated create command is:
CRTCMD CMD(DTACOLLECT/COLENVINF) srcstmf('/home/heymchr/builds/dtacollect/src/COLENVINF.CMD') PGM(COLENVINF) VLDCKR(*NONE) PMTFILE(*NONE) HLPPNLGRP(COLENVINF) HLPID(COLENVINF) AUT() ALLOW() TEXT('')
If TEXT is not overridden in the Rules.mk file, the TEXT value from the source should be used instead of using TEXT('')