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 

I want to get a TSO procedure to get data from a DS with the

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


Joined: 04 Nov 2005
Posts: 12
Topics: 4

PostPosted: Mon Nov 07, 2005 12:49 am    Post subject: I want to get a TSO procedure to get data from a DS with the Reply with quote

Hi
I want to get a TSO procedure/JCL sample to get data with the same key value from a sorted sequential dataset.
Thanks.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Nov 07, 2005 2:06 am    Post subject: Reply with quote

Tiger_Wen,

Please provide complete and clear information whenever you post any query. You are sitting miles away from us and we just can't read whats in your mind.

Quote:

to get data with the same key value


1. What do you mean by "Same Key Value" - A Duplicate entry ??? (or)
2. Do you have a set of key(s) in another dataset which you want to match against your master file ???
3. What is the LRECL and RECFM of your input file(s) ?

The simplest solution to extract a set of data from an input file is using SORT.

1. If you want to extract all duplicate entries into a separate file then search the UTILITIES forum for the keyword "SELECT AND NODUPS"

2. If you have a set of keys in any file and you want to extract this subset from a master file then you need to go for INCLUDE condition in SORT. Search for "INCLUDE COND=" and you will see tons of posts on that.

Thanks,
Phantom
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