IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can i find a record in a member and write it onto another


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Mon Jun 25, 2007 2:04 am
Reply with quote

Hi,

I have got a member(inps) which contains the following type records(thousands of records) ...

Code Name Designation
1 Rajat SE
2 Veena Mgr
3 Bhanu TL

I want to search for the record with the code "2" and i want to write it onto another member (outps) ... Is it possible using JCL ????

Cheers
Arya
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 25, 2007 2:42 am
Reply with quote

Hello,

Yes, you can do what you want using your sort product.

You could use something like:
Code:
  INCLUDE COND=(1,1,EQ,CH,C'2')


You might search in the sort forum and look for other examples of this also.

As far as jcl, code your SORTIN as DSN=pds.name(inmbr) and your SORTOUT as DSN=pds.name(newmbr). Use DISP=SHR for both.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Jun 25, 2007 2:42 am
Reply with quote

Use SORT with INCLUDE condition.
Back to top
View user's profile Send private message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Mon Jun 25, 2007 2:53 am
Reply with quote

Tx for ur quick response ....

Cheers
Arya
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 25, 2007 3:33 am
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top