hi all.
I'm trying to generate some data mbrs' using IEBDG.
Bottom line, no matter what I try, I end up with either a JCL Err,
or worse - with an active stuck job that is "WAITING FOR DATA SETS"
I've been through google, read the manual, tried the ibm sample code example,
Tried fusing some myslef.. no go.
What am I doing wrong?
or - if some one could please share a minimal, barebone code step,
that I could build on.. would be appreciated.
My last attempt -
(Running from SOME.PATH.JCL(iebdgjob)
//STEP0001 EXEC PGM=IEBDG
//SYSPRINT DD SYSOUT=*
//OUTLBL DD DSNAME=SOME.PATH.TEST(TSTDTA01),
// DISP=(,KEEP),SPACE=(TRK,(10,10,5)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSIN DD DATA
DSD OUTPUT=(OUTLBL)
FD NAME=A,LENGTH=6,FORMAT=ZD,INDEX=1
FD NAME=B,LENGTH=74,FORMAT=AL,ACTION=RP
CREATE QUANTITY=100,NAME=(A,B)
END
/*
IEBDG Basics Error
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: IEBDG Basics Error
First, learn to use the Code button. It preserves spaces so we can see if you have a basic formatting error such as putting the utility control commands in column 1.
Second, try to create a sequential data set instead of a PDS member. I tried your control statements against a sequential data set and had no issues. When I then tried your control statements against a PDS, I got errors. You may want to review https://www.ibm.com/docs/en/zos/2.5.0?t ... et-members for how IBM did a PDS. And note that their example is CREATING a PDS, not using an existing PDS. That could make a big difference.
Second, try to create a sequential data set instead of a PDS member. I tried your control statements against a sequential data set and had no issues. When I then tried your control statements against a PDS, I got errors. You may want to review https://www.ibm.com/docs/en/zos/2.5.0?t ... et-members for how IBM did a PDS. And note that their example is CREATING a PDS, not using an existing PDS. That could make a big difference.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: IEBDG Basics Error
I tried the job shown, with 2 changes:
DISP=(,CATLG) instead of DISP=(,KEEP)
Shifted the input data to start in column 2
and it worked perfectly.
DISP=(,CATLG) instead of DISP=(,KEEP)
Shifted the input data to start in column 2
and it worked perfectly.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: IEBDG Basics Error
The message WAITING FOR DATA SETS would indicate that the dataset already exist and is in use. Could it be that you really mean
//OUTLBL DD DSNAME=SOME.PATH.TEST(TSTDTA01),DISP=SHR
DISP=(,KEEP) is in any case not good, though of course it might be changed to CATLG by SMS.
//OUTLBL DD DSNAME=SOME.PATH.TEST(TSTDTA01),DISP=SHR
DISP=(,KEEP) is in any case not good, though of course it might be changed to CATLG by SMS.
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: IEBDG Basics Error
1) Learn how to use the Code button when posting your messages!!!!!!!
2) Please provide ALL REQUIRED INFORMATION:
- Properly formatted code
- Properly formatted input/output data (if any)
- ALL AND EVERY ERROR MESSAGE, exactly as it appeared when running your code
The forum members should not guess what is happening at your side of the world.
2) Please provide ALL REQUIRED INFORMATION:
- Properly formatted code
- Properly formatted input/output data (if any)
- ALL AND EVERY ERROR MESSAGE, exactly as it appeared when running your code
The forum members should not guess what is happening at your side of the world.
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1465
-
by sergeyken
View the latest post
Sun Oct 04, 2020 11:33 pm
-
- 0
- 1208
-
by mehi1353
View the latest post
Tue May 28, 2024 2:42 pm
-
- 7
- 3612
-
by jcdm
View the latest post
Tue Jul 25, 2023 11:57 am
-
- 9
- 4507
-
by steve-myers
View the latest post
Sat Nov 13, 2021 12:17 am
-
- 4
- 2095
-
by willy jensen
View the latest post
Tue Apr 20, 2021 1:26 pm