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: 6968
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

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