Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Adding a new member in PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Adding a new member in PDS
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: 1439
Location: Bangalore,India

PostPosted: Thu Sep 13, 2007 3:36 pm    Post subject:
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: 743
Location: Germany

PostPosted: Thu Sep 13, 2007 3:49 pm    Post subject:
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    Post subject: Reply to: Adding a new member in PDS
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: 743
Location: Germany

PostPosted: Thu Sep 13, 2007 4:04 pm    Post subject:
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    Post subject: Reply to: Adding a new member in PDS
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    Post subject:
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: 743
Location: Germany

PostPosted: Thu Sep 13, 2007 5:07 pm    Post subject:
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    Post subject: Reply to: Adding a new member in PDS
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Sep 13, 2007 6:44 pm    Post subject: Reply to: Adding a new member in PDS
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    Post subject:
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

Senior Member


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

PostPosted: Fri Sep 14, 2007 12:52 pm    Post subject:
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    Post subject: Reply to: Adding a new member in PDS
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: 1288
Location: Chennai, India

PostPosted: Sat Sep 15, 2007 1:23 pm    Post subject: Reply to: Adding a new member in PDS
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

Senior Member


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

PostPosted: Mon Sep 17, 2007 1:59 pm    Post subject: Re: Reply to: Adding a new member in PDS
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: 1288
Location: Chennai, India

PostPosted: Tue Sep 18, 2007 5:18 pm    Post subject: Reply to: Adding a new member in PDS
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

Senior Member


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

PostPosted: Tue Sep 18, 2007 6:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm
No new posts Adding a descending character to a file Steve Ironmonger DFSORT/ICETOOL 3 Fri Jul 15, 2016 4:57 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts SE37 while adding element to endevor kalyan.v CA Products 5 Mon Apr 25, 2016 6:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us