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
 

 

Writing data to Different Members

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
VijayKrish

New User


Joined: 30 Jun 2010
Posts: 10
Location: India

PostPosted: Fri Jul 16, 2010 4:55 pm    Post subject: Writing data to Different Members
Reply with quote

Hi,

In all the datasets i am getting value "suthanthiraraj" written. Please help me out on what is wrong with the code.

Code:
SCLD1 = "LLD.DRF.RECOMP.SCLA"                                     
                                                                   
ADDRESS TSO                                                         
   "ALLOCATE DATASET ('"SCLD1"') F(DAT) NEW SPACE(50,20) DIR(10)", 
   "DSORG(PO) RECFM(F B) LRECL(80) BLKSIZE(27920)"                 
   "FREE F(DAT)"                                                   
                                                                   
 "ALLOCATE DA('"SCLD1"("SCLRET")') F(CHKOUT) OLD "                 
                                                                   
 "ALLOCATE DA('"SCLD1"("SCLADD")') F(CHKIN) OLD "                   
                                                                   
 "ALLOCATE DA('"SCLD1"("SCLERR")') F(ERRIN) OLD "                   
                                                                   
 LOT.1= "VIJAY"                                                     
 LOT.0=1                                                           
 "EXECIO" LOT.0 "DISKW CHKIN  (STEM LOT." 
 LOA.1= "KRISHNA"                         
 LOA.0=1                                   
 "EXECIO" LOA.0 "DISKW CHKOUT (STEM LOA." 
 LOB.1= "SUTHANTHIRARAJ"                   
 LOB.0=1                                   
 "EXECIO" LOB.0 "DISKW ERRIN (STEM LOB."   
 "EXECIO" LOB.0 "DISKW ERRIN (STEM LOB."
 "EXECIO * DISKW CHKIN  (FINIS "       
 "EXECIO * DISKW CHKOUT (FINIS "       
 "EXECIO * DISKW ERRIN  (FINIS "       
"FREE F(CHKIN)"                         
"FREE F(CHKOUT)"                       
"FREE F(ERRIN)"
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 16, 2010 5:01 pm    Post subject:
Reply with quote

well, let us start with - when using a pds, do not allocate a member as old.
always, SHR.

and, you can not allocate/write to more than one member at a time in a PDS
a PDS-E, you can, but you did not allocated/define a PDS-E.

and, the term ds is not applied to members of a PDS (or PDS-E) - it is member.
a PDS (or PDS-E) is a ds.

and start using the bbcode CODE tags
it is much easier to read than your color code.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Jul 16, 2010 6:00 pm    Post subject: Reply to: Writing data to Different Members
Reply with quote

I couldn't even get your code to run.

Code:

SCLD1 = "LLD.DRF.RECOMP.SCLA"

"ALLOC DA('"SCLD1"') NEW SP(50,20) DIR(10)",
"RECFM(F B) LRECL(80)"

"ALLOC DA('"SCLD1"("SCLRET")') F(CHKOUT) SHR REU"
QUEUE "KRISHNA"
"EXECIO "QUEUED()" DISKW CHKOUT (FINIS"

"ALLOC DA('"SCLD1"("SCLADD")') F(CHKIN) SHR REU"
QUEUE "VIJAY"
"EXECIO "QUEUED()" DISKW CHKIN (FINIS"

"ALLOC DA('"SCLD1"("SCLERR")') F(ERRIN) SHR REU"
QUEUE "SUTHANTHIRARAJ"
"EXECIO "QUEUED()" DISKW ERRIN (FINIS"
 
"FREE F(CHKIN CHKOUT ERRIN)"
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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