Dynamic Command Generation in Batch
<p>i'm trying to generate a dynamic command for datastage using a bat file, but i think i'm missing something.</p>

<p>The command "variation" is taken by reading a .txt file.</p>

<p>Here the code:</p>

<pre><code>SET PATH_Classic=C:\IBM\InformationServer\Clients\Classic
CD %PATH_Classic%
SET /P INV_ID=Type the invocation ID : 
ECHO %INV_ID%
setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%G in (%1) do (
SET FLOW=%%G
SET JOBNAME=****_****_**_***_%FLOW%_***_***.%INV_ID%
SET STAGENAME=ReadFile_%FLOW%
dsjob -domain NONE -user ******* -password ******* -server ****** -linkinfo ****** %JOBNAME% %STAGENAME% read_file_IN
)
pause
</code></pre>

<p>I had to keep some info private (*** stuff), but the logic doesn't change.</p>

<p>The problem seems to be that the variables FLOW, JOBNAME &amp; STAGENAME are not being setted.</p>