April 22, 2004, 10:12 AM<Stahl>
-SET in MVS-Batch-Jobs
I'm using FOCUS 7.2.0S1 on a MVS-system and I want to supply some &&variables in a batch-job.
-SET &&var1 = 'abc'
does not work.
This is the error message which the batch-job produces:
UNKNOWN FOCUS COMMAND -SET
(INF32074) BYPASSING TO END OF COMMAND
How can I provide these variables?
Thanks for any hints!
April 22, 2004, 10:30 AM<TonyW>
We use -SET commands in batch all the time, it should work fine. Is it a problem with the line before the -SET command ? I notice you used -SET &var1 = 'abc' with no semi colon at the end .... is the semi colon missing on the line above? I suspect its something before the -SET that is causing the problem, otherwise you have a nice bug.
April 22, 2004, 10:38 AM<Stahl>
there are ; at the end of the -SET-statements. And the line before is only a //SYSIN-jcl-line.
I can't see what's wrong.
000013 //SYSIN DD *
000015 -SET &DATUM = TODAY('A10');
000016 -SET &DATUMDD = EDIT(&DATUM,'$$$99$$$$$');
000017 -SET &DATUMMM = EDIT(&DATUM,'99$$$$$$$$');
000018 -SET &DATUMYYYY = EDIT(&DATUM,'$$$$$$9999');
000019 -SET &DATUMGER = &DATUMDD ! '.' ! &DATUMMM ! '.' ! &DATUMYYYY;
000020 TABLE FILE I7VF001U
000022 "BLBJ &DATUMGER"
000023 SUM GESBEZ
000024 BY GESELL
000025 WHERE STAND='MO' AND DATAUSW='20040300' AND MM='03'
000026 WHERE RECORDLIMIT EQ 300
000027 WHERE READLIMIT EQ 300
April 22, 2004, 10:54 AMMikel
Dialogue Manager commands are not supported in JCL SYSIN.
Include the DM commands or all your code within an procedure.
//SYSIN DD *<br />EX PROC<br />FIN<br />//*
April 22, 2004, 11:50 AM<TonyW>
Ahhh now I see. You need to put your commands in a FOCEXEC procedure. Remember with an MVS batch job you don't have a TSO session as such. That is why TSO ALLOC commands don't work in batch either but they do in an online session. In batch jobs you need DYNAM... or allocate in your JCL (our standard here). DM commands will work in batch but only if executed from within a FOCEXEC.