View previous topic :: View next topic
|
Author |
Message |
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
Is SYSIN DD DUMMY compulsory in IEBGENER utility? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
no |
|
Back to top |
|
|
ezio vin
New User
Joined: 16 Aug 2012 Posts: 44 Location: india
|
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Ezio, compulsory means something like required. Your sample shows an
simple copy and then a DUMMY is enough to accomplish the task. At the moment some editing is needed a SYSIN is needed. The TS didnt supply that kind of information. |
|
Back to top |
|
|
ezio vin
New User
Joined: 16 Aug 2012 Posts: 44 Location: india
|
|
|
|
thanks PETER for clarifying this.. i understood wrongly his question
i thought he is asking SYSIN is necessary regardless of DUMMY or command |
|
Back to top |
|
|
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
Just a clarification..
I want to know Is SYSIN necessary in IEBGENER utility....
Please provide your views on this... |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Take out the SYSIN. Run the step. There's your answer. You can try it several times, just to be sure, but the answer will be the same.
Why are you asking? |
|
Back to top |
|
|
jalsaking1
New User
Joined: 25 Jun 2012 Posts: 1 Location: India
|
|
|
|
Yes, It is mandatory. I just tried to run the utility without SYSIN parameter and got RC12 with below error.
DATA SET UTILITY - GENERATE
IEB316I DDNAME SYSIN CANNOT BE OPENED
Sigh, the utility needs a SYSIN, it can be DUMMY for a straight copy, if not you supply parameters with it. Maybe the TS AND jalsaking1
consult the manual.
Quote: |
Is it an interview question, by any chance?
|
Anuj Dhawan
It looks like that. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I want to know Is SYSIN necessary in IEBGENER utility....
Please provide your views on this... |
There are no "views" or "opinions" on this -- either IEBGENER requires the SYSIN DD statement or it does not; this is called a FACT. And the fact is, IEBGENER will not execute any copy if the SYSIN DD statement is missing -- as was mentioned, it will set return code 12 and stop processing. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
The section of the manual that deals with IEBGENER, or any other utility for that matter, explains what JCL is required and when. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
abhay pratap singh wrote: |
I want to know Is SYSIN necessary in IEBGENER utility.... |
I also share the same thoughts as of Bill - why do you ask this question?
The basic IEBGENER JCL is:
Code: |
//JS10 EXEC PGM=IEBGENER,REGION=1024K
//SYSPRINT DD SYSOUT=* Messages
//SYSUT1 DD DSN=...,DISP=... Sequential Input File
//SYSUT2 DD DSN=...,DISP=... Output File
//SYSIN DD * Control Statements
control statements...
/* |
SYSIN is needed for your control statements. You just don't provide DUMMY on SYSIN, there are many other control statements which can be used. Well, 'gain your question is confusing.
Is it an interview question, by any chance? |
|
Back to top |
|
|
|