IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEBGENER instead of SYSUT2 i have given SYSUT3


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amajhi

New User


Joined: 21 Jul 2006
Posts: 18
Location: Pune

PostPosted: Sat Jul 07, 2007 6:15 pm
Reply with quote

Hi All,

If using IEBGENER instead of SYSUT2 i have given SYSUT3, then whai will be result?

for example :

//STEP001 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=Ist file
//SYSUT3 DD DSN=IInd file
.
.
.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jul 07, 2007 9:02 pm
Reply with quote

Please try it and let us know the result.
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Mon Jul 09, 2007 8:37 am
Reply with quote

I'm intrigued by this question so I tried it out. Since SYSUT2 was required by IEBGENER, it ended with a JCL error.


IEBGENER SYSUT3 - UNIT FIELD SPECIFIES INCORRECT DEVICE NAME

icon_wink.gif
Back to top
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Jul 09, 2007 8:48 am
Reply with quote

Hello,

I suspect that using SYSUT3 did not cause your JCL error.

You have a syntax error in your jcl.

After you correct the jcl error, i expect you will get an error in IEBGENER.

Let us know how your results of if there are questions.
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Mon Jul 09, 2007 9:14 am
Reply with quote

dick scherrer wrote:
Hello,

I suspect that using SYSUT3 did not cause your JCL error.

You have a syntax error in your jcl.

After you correct the jcl error, i expect you will get an error in IEBGENER.

Let us know how your results of if there are questions.


oops, I did made something wrong. the unit that I've specified suddenly went invalid. although SYSUT2 was indeed required, so the job had a maxcc of 12. thanks for the info icon_smile.gif

here's the SYSPRINT:
IEB316I DDNAME SYSUT2 CANNOT BE OPENED
Back to top
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Jul 09, 2007 10:27 am
Reply with quote

You're welcome icon_smile.gif

With SYSUT2 you should be good to go. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Jul 09, 2007 12:02 pm
Reply with quote

Hi,

A bit more:
General syntax for 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...                                                 
/*                                         


From the above JCL point of view one can say SYSUT2 is like a keyword for IEBGENER. If one do not code this, s/he is likely to get the error messaage:
Code:
.JAAA     8 DSS8083E - MISSING  SYSUT2  DD STATEMENT


Hope this helps.
Back to top
View user's profile Send private message
Priya_Shankar

New User


Joined: 07 Aug 2007
Posts: 22
Location: Chennai

PostPosted: Tue Aug 05, 2008 10:13 pm
Reply with quote

Hi, I have a question here related to the above one.

I created a GDG base. Using IEBGENER utility, I tried creating a file (GDS) within the GDG and also tried to load the data (instream) directly into that GDS file. But, I'm facing some issues in executing it successfully. My intention here is to load the data directly into a GDS created within the same job.

My question here is: is the functionality of this utility that the input should always be some sort of file? Or is there any other approach to do this?

Please correct me if there is any error in this JCL. Thank you.

JCL for your reference:
Code:

//STEP1      EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSIN      DD  DUMMY
//SYSUT1    DD  *
10000010
10000020
10000030
10000040
10000050
/*
//SYSUT2   DD  DSN=VKIT.TEST.BASE(+1),
//                     DISP=(,CATLG,DELETE),
//                     UNIT=SYSDA,
//                     SPACE=(TRK,(8,8),RLSE)


where
VKIT.TEST.BASE - GDG Base
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Aug 05, 2008 10:26 pm
Reply with quote

I can't seem to understand your point. What you've showed in a normal, standard job that creates a new DASD GDS on an SMS-managed system.
Back to top
View user's profile Send private message
Priya_Shankar

New User


Joined: 07 Aug 2007
Posts: 22
Location: Chennai

PostPosted: Tue Aug 05, 2008 10:37 pm
Reply with quote

Kevin,
Instead of having input data in an input file and copying those contents to an output file, I want to load the data directly into an output file which is a GDS.
Thank you.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Aug 05, 2008 11:15 pm
Reply with quote

Priya_Shankar wrote:
Instead of having input data in an input file ....
Where will your records come from?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Aug 05, 2008 11:31 pm
Reply with quote

//sysut1 dd * defines an instream data file. You may need to add some DCB info to your SYSUT2 file.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Aug 05, 2008 11:39 pm
Reply with quote

Hello,

Quote:
My question here is: is the functionality of this utility that the input should always be some sort of file? Or is there any other approach to do this?
Yes, most utilities read data from one dataset, do something with the data read, and write the results to another dataset. The functionality of each utility might vary, but that is the normal process. What other approach do you have in mind?

When you write your "own code", you do not have the restrictions of the individual utilities. You can gather pieces from multiple places, manipulate as needed, and write an output file.

The output from a utility or your own code may be a gdg or not, that is a design concern implemented in the jcl rather than in code.

If you explain what you want to do, we may be better able to offer suggestions.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Wed Aug 06, 2008 9:29 am
Reply with quote

Hi Priya_Shankar,

I have tried using the same JCL which you have mentioned with a sequential dataset as the output instead of a GDG and the instream data using IEBGENER and it was successful..Can you plz let us know what exact error did you get while running your JCL because your JCL looks fine.



Thanks..
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Aug 06, 2008 11:15 am
Reply with quote

Hi,

Somwhere it clicks me that I got your nerves-

Priya_Shankar wrote:
Instead of having input data in an input file
Here you want to say- "Instead of having input data in an input file if I use in-stream data" would IEBGENER work ?

If so, yes you can use in-stream data..

Quote:
... copying those contents to an output file, I want to load the data directly into an output file which is a GDS.
And here you wanted to say- "I'am trying to copy those (above said, in-stream) contents to an output file, which is not a QSAM file aka PS/flat file/sequential file instead it's GDS aka some GDG generation."

If so, yes you can use GDG/GDS; GDGs (I like to use GDG ..) are just another QSAM files & they are no different but they all are related to the same base, and are chronologically linked. (ofcourse, they have to be - because they share the same DCB info)

If I could get you correctly and the JOB posted by you earlier is the "exact" what you've used, you might get this error-
Code:
CONTINUATION CARD STARTS PAST COLUMN 16
to avoid this, shift the DISP towards left till this error disappears..


Now, please do a little favour to me by posting about
Quote:
I'm facing some issues in executing it successfully
Did you get some abend, some error..in any case you need to share them here for us to suggest something.
Back to top
View user's profile Send private message
Priya_Shankar

New User


Joined: 07 Aug 2007
Posts: 22
Location: Chennai

PostPosted: Wed Aug 06, 2008 10:59 pm
Reply with quote

Hi,
Actually in my JCL, I had given DCB info for the SYSUT2 file. In the preview I was able to see the entire JCL but on submission I couldn't. icon_confused.gif

As suggested by Anuj, on shifting the DISP towards left, I was able to load the in-stream data into a sequential file without any issues.

Below is the info given for SYSUT2 in the above JCL.

//SYSUT2 DD DSN=VKIT.TEST.BASE(+1),
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(8,8),RLSE)
// DCB=VKIT.TEST.GDGMODEL

where
VKIT.TEST.GDGMODEL - GDGModel.

My understanding here is the generation getting created will pick the attributes of the GDGModel which is already created. Hence mentioning the dataset name in the DCB. Please correct me if I'm wrong.

But on trying with GDS as output file, the JCL errored out with a MAXCC of 12 - DATASET NOT FOUND.

When I tried executing the same with the DCB info by giving the LRECL, RECFM and BLKSIZE rather than the GDGModel dataset name, I'm able to execute without any errors.

Please let me know why the JCL is not recognizing the GDGModel dataset.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Aug 06, 2008 11:46 pm
Reply with quote

Hello,

If you log on to tso/ispf, go to 3.4, and use VKIT.TEST.GDG* as the dsname level, what is returned?

You probably do not want gdg models on your system anyway. I'd suggest you talk with your storage management people for guidance.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IEBGENER is not Creating Member in PD... JCL & VSAM 7
No new posts IEBGENER to copy from FB to VB and re... All Other Mainframe Topics 3
No new posts Error in IEBGENER JCL & VSAM 1
No new posts EMAIL using IEBGENER - SMTP JCL & VSAM 4
No new posts SYSUT2 - CONFLICTING DCB PARAMETERS JCL & VSAM 6
Search our Forums:

Back to Top