View previous topic :: View next topic
|
Author |
Message |
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Hi All,
Please find a following scenario.
I have created a PDS and a member in it.
Now i want to add some more members to it through JCL.
I tried with IEFBR14, but it is saying File already cataloged.
I also tried with DISP=SHR, then it is saying Member not found in PDS.
It would be great if someone suggest how to add new members to existing PDS.
Regards,
Kiran |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Kiran,
New member should have some data, empty members cannot be created through jcl. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
You could use the IEBUPDTE uility.
Regards, UmeySan |
|
Back to top |
|
|
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Hi Umey san and All,
I tried with IEBUPDTE.
But it showing the returning Maxcc=12.
Please find the code i coded.
Code: |
//STEP1 EXEC PGM=IEBUPDTE
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSNAME=U700179.IE.BATCH.DATAFRMS,DISP=SHR
//SYSIN DD DATA
./ ADD NAME=ZEARN01,LEVEL=00,SOURCE=0,LIST=ALL
(DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)
./ ADD NAME=ZEARN02,LEVEL=00,SOURCE=0,LIST=ALL
(DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)
./ ADD NAME=ZHR001,LEVEL=00,SOURCE=0,LIST=ALL
(DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)
/ ENDUP
/*
|
Regards,
Kiran |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi Kiran !
--> (DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)
Check these columns in your jcl.
Regards, UmeySan |
|
Back to top |
|
|
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Hi Umeysen and All,
I didn't understand the question.
But from my understanding,
(DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)
These starts in column 8 in JCL.
It would be great if you clarify for me.
Regards
Kiran |
|
Back to top |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
kiran_65,
Please check with the following code for your requirement.
Code: |
// EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DUMMY,DCB=(NAME.TEST.PDS)
//SYSUT2 DD DSN=NAME.TEST.PDS(NEWMEM),DISP=SHR
//SYSIN DD DUMMY |
|
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Sorry kiran_65 !
I had'nt read your post with orderly mind. As i look twice, now i assume that the line
(DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)
is part of you input-stream and not a system-message after submit.
Right ???
UmeySan |
|
Back to top |
|
|
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Hi Shankar and All,
Please find the following error,
==MSG> *** ERROR SUMMARY AND COUNTS *** JEM 6.1.2H 09/13/2007 08:12:02
==MSG> 0 ADVISORY LEVEL
==MSG> 0 WARNING LEVEL
==MSG> 1 ERROR LEVEL
==MSG> 1 TOTAL ISSUED 0 SUPPRESSED.
==MSG> THE HIGHEST SEVERITY CODE ENCOUNTERED WAS 08.
==MSG> LABEL SV MSG.NO. ERROR MESSAGE
==MSG> -------- -- -------- -------------------------------------------------
==MSG> .JAAA 8 DSS4740E - MEMBER "KKR " NOT FOUND IN ABOVE LIBRARY
000100 //U700179V JOB ,T922132SRINI,CLASS=K,NOTIFY=U700179,
000200 // MSGCLASS=X,MSGLEVEL=(1,1),REGION=4096K
000300 //STEP1 EXEC PGM=IEBGENER
000400 //SYSPRINT DD SYSOUT=*
000510 //SYSUT1 DD DUMMY,DCB=U700179.IE.BATCH.DATAFRMS
.JAAA //SYSUT2 DD DSNAME=U700179.IE.BATCH.DATAFRMS(KKR),DISP=SHR
==MSG> ***ERROR - DSS4740E - MEMBER "KKR " NOT FOUND IN ABOVE LIBRARY
please clarify for me.
Regards
Kiran |
|
Back to top |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
kiran_65,
The code i posted was ran sucessfully in my shop. I think your shop JCL SCAN is not allowing to create the member which is not in PDS. If you post the completion code from LOG output means, it will be helpful to find the correct information from QW regarding ERROR - DSS4740E . |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
There is nothing wrong with the code posted by shankar. I tried and it is working fine. |
|
Back to top |
|
|
amrita.chatterjee
New User
Joined: 27 Apr 2006 Posts: 48 Location: Bangalore, India
|
|
|
|
In my shop also, The code provided by shankar is working fine. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
murmohk1 wrote: |
New member should have some data, empty members cannot be created through jcl. |
Murali,
Empty member can be created, I think. I tried below JCL, it creates an empty member with name NEWJCL3.
Code: |
//STEP002 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
//*
//SYSUT2 DD DISP=SHR,DSN=HLQ.JCL(NEWJCL3),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920)
//SYSIN DD DUMMY
//SYSOUT DD SYSOUT=*
//* |
However, when you check your JCL for errors(syntax check), you'll get
Code: |
MEMBER "NEWJCL3 " NOT FOUND IN ABOVE LIBRARY |
ignore this & SUBmit JOB, an empty member will be created. Please check this, if possible, please let me know your findings, it must not be site specific. |
|
Back to top |
|
|
ssowmya
New User
Joined: 10 Oct 2006 Posts: 40
|
|
|
|
Hi Anuj...
Its working in our shop... |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Anuj,
The same error message is displayed when i checked for syntax errors using JCLPREP. Even i dont think this is site specific. But the job ran fine.
ssowmya,
Are you not getting the error message? What did you use to check the syntax? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Aaru wrote: |
The same error message is displayed when i checked for syntax errors using JCLPREP. |
Thanks for keep us posting. I use JEM or JSCAN for syntax check. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Oh ok !
We should try to find out what ssoumya had used to check the syntax?
Hence from all the previous posts it is clear that JCLPREP, JEM and JSCAN would display that error message. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
We should try to find out what ssoumya had used to check the syntax? |
Yeah, this can give idea about his/her shop, but I'm looking forward for the reply of kiran_65, who started the thread, BTW, we can not try from our shops..she needs to post that for us. |
|
Back to top |
|
|
|