DCL &TEXTFILENM *CHAR 40
dcl &curdt *char 6
dcl &curtm *char 6
/* build your CL file name as */
RTVSYSVAL SYSVAL(QDATE) RTNVAR(&CURDT)
RTVSYSVAL SYSVAL(QTime) RTNVAR(&CURTM)
ChgVar &TextFileNm (QDATE *TCAT QTIME *TCAT ‘.TXT’
To stream file . . . . . . . . . TOSTMF &TextFileNm
Am able to build a string into variable &textfilenm.When i use cpytoimpf and give &textfilenm in to stmf a file is getting created with string,but when i give a directory in th path as test/&textfilenm a text file by name &textfilenm is getting created instead of the string.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!