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
 

 

How to read only a particular record

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

New User


Joined: 06 Feb 2006
Posts: 8

PostPosted: Wed Feb 15, 2006 6:49 pm    Post subject: How to read only a particular record
Reply with quote

how to read only a particular record from a file using rexx
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: Wed Feb 15, 2006 6:55 pm    Post subject: Re: How to read only a particular record
Reply with quote

You can start by reviewing the EXECIO command.

You need to be more specific about what you mean by "a particular record". Do you mean a particular record number?
Back to top
View user's profile Send private message
N.SUDHA
Warnings : 1

New User


Joined: 06 Feb 2006
Posts: 8

PostPosted: Wed Feb 15, 2006 7:08 pm    Post subject: rexx
Reply with quote

suppose we have 10 records in a file how to read only the 9th and 10th record
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: Wed Feb 15, 2006 7:14 pm    Post subject: Re: How to read only a particular record
Reply with quote

"EXECIO 2 DISKR ddname 9"

Places 2 records into the stack starting at record number 9.
Back to top
View user's profile Send private message
N.SUDHA
Warnings : 1

New User


Joined: 06 Feb 2006
Posts: 8

PostPosted: Wed Feb 15, 2006 8:00 pm    Post subject: rexx1
Reply with quote

how to move a record from one position to another using rexx
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Thu Feb 16, 2006 10:02 am    Post subject:
Reply with quote

Hey N.SUDHA,
You should not post another doubt in the same forum. Its become tough to correlate. However what SUPERK has said is quite fine. For move you can put those two records in a stem and free the DS. Then again use ALLOC in MOD mode. and use EXECIO DISKW to write the records in the particular position.

You also can use macro and read upto the record you want(Eg;- upto 9th record). Now place the 9th record & 10th record in the stem. Now you want to place that records (say - 3 & 4th position), then again place the cursor at the first position and read upto 2nd position and put the records in the 3rd & 4th position.
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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


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