MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rexx tool for extracting records from VSAM file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Thu Apr 28, 2005 1:17 pm    Post subject: Rexx tool for extracting records from VSAM file Reply with quote

Hi all,

can any one help me out write a REXX utility which will extract the records ( based on some criteria) from a VSAM file.

Input to the rexx should be :- 1)criteria.
2) VSAM file name.
3) output dataset name

Note;- am new to REXX

Thanks,
Guru
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Apr 28, 2005 1:25 pm    Post subject: Reply with quote

What would be the point? All of this can easily be done in a single IDCAMS REPRO command.
Back to top
View user's profile Send private message
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Thu Apr 28, 2005 1:27 pm    Post subject: Reply with quote

Superk,

I'm sorry !! .. But didnt know that approach..

can u post me the jcl please!!

Thanks,
Guru
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Apr 28, 2005 1:36 pm    Post subject: Reply with quote

tattva,

Please search before posting. check these links for topics which discuss accessing vsam file in rexx.

http://mvsforums.com/helpboards/viewtopic.php?t=2702&highlight=vsam

http://mvsforums.com/helpboards/viewtopic.php?t=365&highlight=vsam

You could use sort/file-aid to copy the records from a vsam file to a flat using INCLUDE/OMIT conditions. Check the utilities forum for examples

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Apr 28, 2005 1:36 pm    Post subject: Reply with quote

Superk,

can you show me the IDCAMS repro Jcl which can be used to filter records? Let us say I want all the records which has 'kolusu' in the 1st 6 postions. As far as I know you can only select the records based on key. ie. FROMKEY to TOKEY or FROMNUMBER to TONUMBER

Check this link for repro command parameters.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.25?DT=19990113080956

Thanks

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Apr 28, 2005 2:00 pm    Post subject: Reply with quote

My concept of "filtering" records from a VSAM file is to retrieve them by the index key. For anything else, a SORT "INCLUDE COND" would be a better solution.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue May 03, 2005 3:27 pm    Post subject: Reply with quote

For my understanding, and to help me provide better responses in the future, maybe the original poster could define what was meant by
Quote:

... extract the records ( based on some criteria) from a VSAM file

I'd like to know if my concept of the post was off-base or not.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group