![]() |
||||||||||||
Go ![]() | New ![]() | Search ![]() | Notify ![]() | Tools ![]() | Reply ![]() | ![]() |
<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. | ||
|
<Stahl> |
Hi, 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. Thanks Stahl 000013 //SYSIN DD * 000014 OFFLINE 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 000021 HEADING 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 000028 END 000029 FIN 000030 /* | ||
|
Platinum Member |
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 />//*Regards, Mikel | |||
|
<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. | ||
|
Powered by Social Strata |
![]() | Please Wait. Your request is being processed... |
|