Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6970
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: 4650
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 Data security erase on RAID device steve-myers All Other Mainframe Topics 0 Sat Jan 13, 2018 6:41 am
No new posts Append the milliseconds to the data s... girishb2 DFSORT/ICETOOL 1 Thu Dec 21, 2017 9:07 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us