Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is there anyway to bring //SYSIN DD * in a PROC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Dec 08, 2008 11:02 am    Post subject: Is there anyway to bring //SYSIN DD * in a PROC
Reply with quote

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
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Dec 08, 2008 11:19 am    Post subject:
Reply with quote

Hi,

Create a PDS(E), copy the SYSIN cards to it's member & include those members in your PROC.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Dec 08, 2008 11:19 am    Post subject:
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Dec 08, 2008 12:06 pm    Post subject:
Reply with quote

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
Code:
PUNCH TYPORG=PO 


SYSIN2 contains
Code:
OPTION COPY             
OUTREC FIELDS=(1:2,79) 


Did i miss something....

Sushanth
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Dec 08, 2008 12:27 pm    Post subject:
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Dec 08, 2008 12:31 pm    Post subject:
Reply with quote

Thank You dick, It worked.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Dec 08, 2008 12:38 pm    Post subject:
Reply with quote

Oh well.. Great..and Thanks for keeping us posted with what have worked for you.. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to know what sysin for DFHTU690 ... pkmurali CICS 3 Mon Jul 25, 2016 1:36 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm
No new posts PROC to JCL mapping jena_samirkumar JCL & VSAM 13 Tue Dec 08, 2015 12:37 pm
No new posts JCL/job to PROC -- Symbolic to be use... Elixir JCL & VSAM 2 Thu Aug 20, 2015 2:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us