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

Adding a new member in PDS


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

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Thu Sep 13, 2007 3:28 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 13, 2007 3:36 pm
Reply with quote

Kiran,

New member should have some data, empty members cannot be created through jcl.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Sep 13, 2007 3:49 pm
Reply with quote

Hi !

You could use the IEBUPDTE uility.

Regards, UmeySan
Back to top
View user's profile Send private message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Thu Sep 13, 2007 4:00 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Sep 13, 2007 4:04 pm
Reply with quote

Hi Kiran !

--> (DATA STATEMENTS, SEQUENCE NUMBERS IN COLUMNS 73 THROUGH 80)

Check these columns in your jcl.

Regards, UmeySan
Back to top
View user's profile Send private message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Thu Sep 13, 2007 4:09 pm
Reply with quote

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
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Thu Sep 13, 2007 4:11 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Sep 13, 2007 5:07 pm
Reply with quote

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
View user's profile Send private message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Thu Sep 13, 2007 5:43 pm
Reply with quote

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
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Thu Sep 13, 2007 6:19 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 13, 2007 6:44 pm
Reply with quote

There is nothing wrong with the code posted by shankar. I tried and it is working fine.
Back to top
View user's profile Send private message
amrita.chatterjee

New User


Joined: 27 Apr 2006
Posts: 48
Location: Bangalore, India

PostPosted: Fri Sep 14, 2007 10:44 am
Reply with quote

In my shop also, The code provided by shankar is working fine.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Sep 14, 2007 12:52 pm
Reply with quote

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
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Sep 14, 2007 1:51 pm
Reply with quote

Hi Anuj...

Its working in our shop... icon_smile.gif
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Sat Sep 15, 2007 1:23 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Sep 17, 2007 1:59 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 18, 2007 5:18 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Sep 18, 2007 6:50 pm
Reply with quote

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. icon_wink.gif
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 Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Adding 'ODD' and 'EVEN' indicator at ... DFSORT/ICETOOL 6
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top