View previous topic :: View next topic
|
Author |
Message |
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi all,
I have JCL PROC, inside the PROC, i have
Code: |
//SYSIN DD *
PUNCH TYPORG=PO |
&
Code: |
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1:2,79) |
I am getting an error, saying that PROC can't contain SYSIN DD *
Code: |
++SYSIN DD *
(1 CARD IN INPUT STREAM DATA SET)
CAY6058E PROCEDURE STATEMENT CANNOT CONTAIN DD * OR DD DATA PARAMETER |
How to solve the problem...
Sushanth |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Create a PDS(E), copy the SYSIN cards to it's member & include those members in your PROC. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
you have answered your own question, you cannot instream data in a PROC.
Either place instream data in a PDS and call it in your proc or override the PROC
Gerry |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi guyz,
I have placed the instream data as a PDSE member. Using JEM i check'd the JCL, there was no error, but when i submitted it. The return code was 16.
Error is
Code: |
PRINT/PUNCH DATA SET UTILITY
PUNCH TYPORG=PO
IEB435I MISSING COMMAND PRECEDING COL 13
IEB420I SYSIN IS EMPTY |
&
Code: |
SYSIN :
OPTION COPY
*
OUTREC FIELDS=(1:2,79)
*
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE |
I replaced SYSIN input data stream with the following
Code: |
//SYSIN DD DSN=HXSULL.JCL(SYSIN1),DISP=SHR |
&
Code: |
//SYSIN DD DSN=HXSULL.JCL(SYSIN2),DISP=SHR |
SYSIN1 contains
SYSIN2 contains
Code: |
OPTION COPY
OUTREC FIELDS=(1:2,79) |
Did i miss something....
Sushanth |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Did i miss something.... |
It looks like you began the statements in col 1 in the members - they should be the same as when they were inline, not col 1. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Thank You dick, It worked. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Oh well.. Great..and Thanks for keeping us posted with what have worked for you.. |
|
Back to top |
|
|
m_a_n_u
New User
Joined: 04 Apr 2023 Posts: 3 Location: france
|
|
Back to top |
|
|
|