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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


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