View previous topic :: View next topic
|
Author |
Message |
amajhi
New User
Joined: 21 Jul 2006 Posts: 18 Location: Pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Please try it and let us know the result. |
|
Back to top |
|
|
0d311
Guest
|
|
|
|
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
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
0d311
Guest
|
|
|
|
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
here's the SYSPRINT:
IEB316I DDNAME SYSUT2 CANNOT BE OPENED |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome
With SYSUT2 you should be good to go. . . |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Priya_Shankar
New User
Joined: 07 Aug 2007 Posts: 22 Location: Chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Priya_Shankar
New User
Joined: 07 Aug 2007 Posts: 22 Location: Chennai
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Priya_Shankar wrote: |
Instead of having input data in an input file .... |
Where will your records come from? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
//sysut1 dd * defines an instream data file. You may need to add some DCB info to your SYSUT2 file. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
abhishek dadhichi
New User
Joined: 19 Apr 2007 Posts: 37 Location: Bangalore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Priya_Shankar
New User
Joined: 07 Aug 2007 Posts: 22 Location: Chennai
|
|
|
|
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.
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|