View previous topic :: View next topic |
Author |
Message |
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Fri Nov 24, 2006 4:50 am Post subject: Error in GDG VERSION creation |
|
|
Hi All,
I am getting the error mentioned below when i tried to make a gdg and its version.Please help me to get out of this.
ERROR:
Code: | IEF373I STEP/STEP2 /START 2006328.0444
IEF374I STEP/STEP2 /STOP 2006328.0444 CPU 0M
IEF212I GDG STEP3 INFILE - DATA SET NOT FOUND
IEF272I GDG STEP3 - STEP WAS NOT EXECUTED. |
The JCL which i used is as follows:
Code: | //STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GENERATIONDATAGROUP -
(NAME(TEST.GDG06) -
EMPTY -
NOSCRATCH -
LIMIT(5))
/*
//STEP2 EXEC PGM=IEFBR14
//MODEL1 DD DSN=TEST.GDG06,
// DISP=(NEW,KEEP,DELETE),
//* UNIT=SYSDA,
// SPACE=(TRK,0),
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
//SYSPRINT DD SYSOUT=*
//STEP3 EXEC PGM=IEBFR14
//INFILE DD DSN=TEST.GDG06(+1),
// DISP=(NEW,CATLG,DELETE),
//* UNIT=SYSDA,
// SPACE=(TRK,(20,10),RLSE),
// DCB=(MODEL.DCB,RECFM=FB,
// LRECL=80,
// BLKSIZE=800)
//SYSPRINT DD SYSOUT=* |
|
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Fri Nov 24, 2006 6:37 am Post subject: |
|
|
In your step to create the GDG, put the name in quotes and try. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Fri Nov 24, 2006 6:46 am Post subject: |
|
|
cogito-ergp-sum,
Can you please specify the step name and the exact syntax? |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Fri Nov 24, 2006 7:42 am Post subject: |
|
|
NAME operand of DEFINE statement in STEP1. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Fri Nov 24, 2006 12:01 pm Post subject: |
|
|
Could it be that in step3 you are executing IEBFR14 instead of IEFBR14 or that model.dcb does not exist . |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Fri Nov 24, 2006 12:41 pm Post subject: |
|
|
nevilh,
I am running the same code for JCL and i am getting error in STEP2 as below:
Code: |
IGD17101I DATA SET TEST.GDG07 NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG
RETURN CODE IS 8 REASON CODE IS 38 IGG0CLEH
IEF272I JOBABCD STEP2 - STEP WAS NOT EXECUTED.
|
I guess because in Step 1 you are creating the GDG Base and in the second step again you are creating the model with the same GDG name that i why i am getting the error.Are u not getting the same error when you run the job? _________________ Shekar
Grow Technically |
|
Back to top |
|
 |
vjkumk Beginner
Joined: 28 Sep 2005 Posts: 98 Topics: 33
|
Posted: Sat Nov 25, 2006 2:44 am Post subject: |
|
|
Hi,
1)make sure you are giving your HLQ correctly.
2) I also see the Referback as model.dcb instead of MODEL1.DCB(Instead of giving model.dcb in step3, you can create a PS with the needed RECFM and LRECL and you can give that in the dcb as follows
//INFILE DD DSN=TEST.GDG06(+1),
// DISP=(NEW,CATLG,DELETE),
//* UNIT=SYSDA,
// SPACE=(TRK,(20,10),RLSE),
// DCB=(test.myfile)
I assume i want to create a gdg of LRECL 80 and RECFM FB,so test.myfile has to be created with those DCB values.So that it takes the attributes of test.myfile to create the GDG.
3)Add a step before STEP1 to delete any previously created GDG of same convention.So you dont get any message like Duplicate dataset exists in catalog.
//delgdg exec pgm = idcams
//sysprint dd sysout=*
//sysin dd *
delete (TEST.GDG06) GDG force purge
IF MAXCC GT 0
THEN
SET MAXCC=0
/*
//add the remaining steps.
Cheers,
VJ |
|
Back to top |
|
 |
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Mon Nov 27, 2006 1:05 am Post subject: |
|
|
hi all,
Quote: | I assume i want to create a gdg of LRECL 80 and RECFM FB,so test.myfile has to be created with those DCB values.So that it takes the attributes of test.myfile to create the GDG. |
According to the above quotation i did the things and they are working fine,but I am getting an error in delete step.The code is as follows:
Code: | //STEP0 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE(TEST.GDG06) GDG FORCE
/* |
Error:
Code: | IDCAMS SYSTEM SERVICES
DELETE(TEST.GDG06) GDG FORCE
IDC3219I VERB NAME 'DELETE(NIIT51.TEST.G' UNKNOWN
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12 |
|
|
Back to top |
|
 |
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Mon Nov 27, 2006 1:48 am Post subject: |
|
|
The above error message is wrong .Attached is the correct error message:
Code: | IDCAMS SYSTEM SERVICES
DELETE(TEST.GDG06) GDG FORCE
IDC3219I VERB NAME 'DELETE(TEST.G' UNKNOWN
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12 |
|
|
Back to top |
|
 |
vjkumk Beginner
Joined: 28 Sep 2005 Posts: 98 Topics: 33
|
Posted: Mon Nov 27, 2006 2:53 am Post subject: |
|
|
1)try this,the first delete statement deletes all the versions of that GDG
2)the second delete statement,deletes the GDG base if created any,the AMS modal command is used to set the return code.
//delgdg exec pgm = idcams
//sysprint dd sysout=*
//sysin dd *
delete TEST.GDG06.* purge
delete TEST.GDG06 GDG FORCE
IF MAXCC lt 9 THEN set maxcc eq 0 else set maxcc eq 16
/*
//add the remaining steps.
Cheers,
VJ |
|
Back to top |
|
 |
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Mon Nov 27, 2006 5:22 am Post subject: |
|
|
hi vjkumk,
Your solution is working fine .
I have one question.If i want to delete theversion and gdgbase and if suppose that version and gdg is already deleted then how should i set the if else statements to skip that .
thanks and regards
Mrinal |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Nov 27, 2006 6:16 am Post subject: |
|
|
mrinalsolanki,
If the GDG Base is already deleted the return code will be 8. So check for the return code in the IF statement.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
seemajena Beginner
Joined: 07 Nov 2006 Posts: 1 Topics: 0 Location: delhi
|
Posted: Mon Nov 27, 2006 7:03 am Post subject: |
|
|
hi all,
I am getting the error while submitting the JCL here proc 1 is a cataloged proc and called by JCL The main problem is in Proc.
Code: | //PROC1 PROC
//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
DEFINE GENERATIONDATAGROUP -
(NAME(PRACTICE.GDG1) -
LIMIT(10) -
NOEMPTY -
SCRATCH)
/*
//SYSPRINT DD SYSOUT=*
//STEP2 EXEC PGM=IEFBR14
//STEP3 DD DSN=PRACTICE.GDG1,
// DISP=(NEW,KEEP,DELETE),
//* UNIT=SYSDA,
// SPACE=(TRK,0),
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800) |
Error:
Code: | 6 IEFC601I INVALID JCL STATEMENT
7 IEFC601I INVALID JCL STATEMENT
8 IEFC601I INVALID JCL STATEMENT
9 IEFC601I INVALID JCL STATEMENT
10 IEFC601I INVALID JCL STATEMENT
11 IEFC601I INVALID JCL STATEMENT
12 IEFC601I INVALID JCL STATEMENT |
I think the problem starts from sysin of proc . _________________ seema |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Mon Nov 27, 2006 7:12 am Post subject: |
|
|
Please follow the forum rules and start a new topic.
seemajena wrote: | I think the problem starts from sysin of proc . |
I think you're right. Check here for the rules regarding the use of DD * in procedures. |
|
Back to top |
|
 |
mrinalsolanki Beginner
Joined: 02 May 2006 Posts: 56 Topics: 16
|
Posted: Mon Nov 27, 2006 7:42 am Post subject: |
|
|
hi kolusu,
Your suggestion is working fine.i have one more problem and that is as follows:
If i want to print some message after if statement then what should be the syntax?
My if statement is in sysin.
thanks
Mrinal |
|
Back to top |
|
 |
|
|