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
 
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
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: 587
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
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
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm

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