If the first variable is numeric and the second variable is a string then your code should work, simply enter the "RUN" command in the format shown below. I have taken the liberty to pre-select the drive and path for this example.
Code:
a = ltrim(str(nsif)) + '_' + substr(cgod,3,2)
SET DIRECTORY TO C:\Windows\Temp
RUN md &a
As a side note beware of using single characters "a" to "m" too much since (1) they can be nondescriptive and get lost in complex code and (2) in some scenarios they can represent a "work area" for tables or other specific purpose. The above code is fine, just a note.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.