Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to read the content of RRDS and export them?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Duola32

New User


Joined: 17 Apr 2015
Posts: 2
Location: CHINA

PostPosted: Sat Apr 18, 2015 1:22 pm    Post subject: How to read the content of RRDS and export them?
Reply with quote

How to read the content of RRDS and export them?
I want to develop a assembler program to export the RRDS content into a PDS.
However, I am totally lost about how to do this.
Is there anybody who can help me on this?


Is there any programming manual in assembler for reading the RRDS content?
Thanks
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Sat Apr 18, 2015 1:24 pm    Post subject: Reply to: How to read the content of RRDS and export them?
Reply with quote

why reinvent the wheel, and not use a simple IDCAMS REPRO ???
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 753
Location: The Universe

PostPosted: Sat Apr 18, 2015 3:06 pm    Post subject:
Reply with quote

Mr. Sorichetti is correct. Of course, what do you mean by "export?" In VSAM, when you "export" a data set, its contents are placed into a regular sequential data set following coded information about the data set that permits the IDCAMS utility to reallocate the data set with the same attributes when you "import" the data set.

Reading an RRDS data set sequentially should be no harder than reading any other VSAM data set sequentially. See "DFSMS Using Data Sets" and "DFSMS Macro Instructions for Data Sets" for your z/OS release.

If those manuals are completely mystifying to you, I am sure there are consultants that monitor this forum that would be happy to assist you in exchange for appropriate compensation.
Back to top
View user's profile Send private message
Duola32

New User


Joined: 17 Apr 2015
Posts: 2
Location: CHINA

PostPosted: Sat Apr 18, 2015 4:45 pm    Post subject: Reply to: How to read the content of RRDS and export them?
Reply with quote

Thanks you for the reply.

The reason for not using REPRO is that I need to read records from RRDS in which RMF writes RMF III monitoring data and then sort the records into a PDS.In the end, I will load the records into DB2 table using the PDS which stored the RMF III data.

I have tried to use REPRO and the output dataset's records is not available for DB2 utility to load them into DB.

This assembler not only need to read and store RRDS records into PDS but also need to sort the reocrd as the following format(structured data):
AD3100 10 .5 1982-01-01 1982-07-01
AD3110 10 1.0 1982-01-01 1983-01-01
AD3111 60 .5 1982-03-15 1982-04-15
AD3111 60 .80 1982-01-01 1982-04-15
AD3111 70 .5 1982-03-15 1982-10-15
AD3111 70 1.5 1982-02-15 1982-10-15
AD3111 80 1.0 1982-09-15 1983-01-01
AD3111 80 1.25 1982-04-15 1983-01-15
AD3111 180 1.0 1982-10-15 1983-01-15
AD3112 60 .5 1982-02-01 1982-03-15
AD3112 60 .75 1982-01-01 1982-03-15
AD3112 60 .75 1982-12-01 1983-01-01
AD3112 60 1.0 1983-01-01 1983-02-01
AD3112 70 .25 1982-08-15 1982-10-15
AD3112 70 .5 1982-02-01 1982-03-15
AD3112 70 .75 1982-01-01 1982-10-15

I am learning HLASM myself and I can code assembler program to make the input data as structured data as I need.
However, I am totally lost about how to read the record from RRDS(VSAM)
and save those record into PDS dataset.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Sat Apr 18, 2015 5:35 pm    Post subject: Reply to: How to read the content of RRDS and export them?
Reply with quote

if You need formatting then use Your sort product!
people are adamant in providing solution for which there is an alternative
based on utilities and installed products

furthermore nothing prevents from reading sequentially an RRDS using cobol or pl/i

google for cobol vsam rrds sequential read
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts KSDS direct READ clause after READ NEXT sophia.lee JCL & VSAM 0 Tue Oct 01, 2019 10:10 am
No new posts How to force PULL to read user-input ... Andi1982 CLIST & REXX 5 Thu May 09, 2019 6:27 pm
No new posts Need suggestion on CICS READ UPDATE subratarec CICS 8 Fri May 03, 2019 2:23 pm
No new posts Suggestion on KSDS VSAM READ in CICS subratarec CICS 5 Wed Feb 13, 2019 4:42 pm
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm

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