The reason is that the Converter/Interpreter is expecting data as a result of the "//DD2 DD *". It found none so it is now looking for a new "starting" JCL statement. It found one, the "// SET" statement. After processing the "// SET" statement it again looks for a new "starting" statement. It didn't find one, at least not syntactically correct. It recognized the next statement "// DD ...." as a DD statement, but since the previous DD had been terminated by the "// SET", the JCL rules call for the first DD in a concatenation (even a concatenation of 1 DD statement) to have a label. This DD does not have a label so it is assumed to be a continuation, but there is no logically "active" DD in effect so, you get the "misplaced DD statement" error.
Make sense? Chuck Charles (Chuck) Hardee Senior Systems Engineer/Database Administration EAS Information Technology Thermo Fisher Scientific 300 Industry Drive | Pittsburgh, PA 15275 Phone +1 (724) 517-2633 | Mobile +1 (412) 877-2809 | FAX: +1 (412) 490-9230 [email protected] | www.thermofisher.com WORLDWIDE CONFIDENTIALITY NOTE: Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent of a system responsible for delivering the message to the intended recipient, is prohibited. If you are not the intended recipient, please inform the sender and delete all copies. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of R.S. Sent: Wednesday, December 23, 2015 7:45 AM To: [email protected] Subject: Re: Where is SET allowed in JCL? W dniu 2015-12-23 o 04:41, Paul Gilmartin pisze: > Sometimes within a DD concatenation; sometimes not. For example: > > 3 //STEP EXEC PGM=IEFBR14 > //* > 4 //DD1 DD * > 5 // DD PATH='/dev/./null' > 6 // SET V1=WOMBAT > 7 // DD PATH='/dev/./null' > //* > 8 //DD2 DD * > 9 // SET V2=WOMBAT > 10 // DD PATH='/dev/./null' > 11 // > STMT NO. MESSAGE > 10 IEFC019I MISPLACED DD STATEMENT > > Why does it report IEFC019I at statement 10, but not at statement 7? > > I had grown accustomed to placing SET in complex concatenations, near > a reference for clarity. Today was the first time I tried it after DD *. > > Should I submit an RCF requesting clarification or an SR for inconsistent > behavior? > > I hate JCL! Just curious: why do you need to insert SET into DD concatenation? Regards -- Radoslaw Skorupka Lodz, Poland -- Treść tej wiadomości może zawierać informacje prawnie chronione Banku przeznaczone wyłącznie do użytku służbowego adresata. Odbiorcą może być jedynie jej adresat z wyłączeniem dostępu osób trzecich. Jeżeli nie jesteś adresatem niniejszej wiadomości lub pracownikiem upoważnionym do jej przekazania adresatowi, informujemy, że jej rozpowszechnianie, kopiowanie, rozprowadzanie lub inne działanie o podobnym charakterze jest prawnie zabronione i może być karalne. Jeżeli otrzymałeś tę wiadomość omyłkowo, prosimy niezwłocznie zawiadomić nadawcę wysyłając odpowiedź oraz trwale usunąć tę wiadomość włączając w to wszelkie jej kopie wydrukowane lub zapisane na dysku. This e-mail may contain legally privileged information of the Bank and is intended solely for business use of the addressee. This e-mail may only be received by the addressee and may not be disclosed to any third parties. If you are not the intended addressee of this e-mail or the employee authorized to forward it to the addressee, be advised that any dissemination, copying, distribution or any other similar activity is legally prohibited and may be punishable. If you received this e-mail by mistake please advise the sender immediately by using the reply facility in your e-mail software and delete permanently this e-mail including any copies of it either printed or saved to hard drive. mBank S.A. z siedzibą w Warszawie, ul. Senatorska 18, 00-950 Warszawa, www.mBank.pl, e-mail: [email protected] Sąd Rejonowy dla m. st. Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, nr rejestru przedsiębiorców KRS 0000025237, NIP: 526-021-50-88. Według stanu na dzień 01.01.2015 r. kapitał zakładowy mBanku S.A. (w całości wpłacony) wynosi 168.840.228 złotych. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
