Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

search for a key and move file b to output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
akshaiya

New User


Joined: 17 Sep 2005
Posts: 49

PostPosted: Mon Oct 09, 2006 2:01 pm    Post subject: search for a key and move file b to output file
Reply with quote

My requirement is to search for a particular field in a FILE A.
If my search is successfull then I need to move FILEB to the output file else FILEC to the output file.

1.Search 3 character field('LEA or FBA or VAB) from postion 50 to 52 in FILEA
2.If present move entire file B to output file
3.Search ('EDA' or DEA') in FILE A.
4.If present move file c to the output file.

How do i do this with sort.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Oct 09, 2006 9:03 pm    Post subject:
Reply with quote

Your description is somewhat confusing.

You mention FILEA, FILEB and FILEC - are those three different input data sets?

Do you want to copy FILEB to to the output file if LEA or FBA or VAB is present anywhere in any record of FILEA?
Do you want to copy FILEC to the output file if EDA' or DEA is present anywhere in any record of FILEB? If LEA or FBA or VAB is also present, do you want FILEB and FILEC copied to the output file? In that order?

What is the RECFM and LRECL of FILEA, FILEB and FILEC?

It would really help if you would show some examples of the input records in each file and what you want for output for different cases.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us