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

Sorting and combining files.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hritam

New User


Joined: 27 Jun 2005
Posts: 36
Location: India

PostPosted: Tue Mar 31, 2009 9:37 am
Reply with quote

Hi,
I have the following requirement. I know we can do this by coding three difft steps but I would like to know if it can be done in a single step:

Step 1: Extract only those records having current address effective date greater than 15th November 2008 and Field ABC not equal to X or Y. This will be file 1.

Step 2: Extract only those records having current address effective date greater than 1st February 2009 and Field ABC equal to X and Y. This will be file 2.

Step 3: Concatenate file 1 and file 2 and copy it back to File3.

File length = 250

Field description:
===============
Effective date
Length PIC X(10)/MM-DD-YYYY
Position = 20

ABC
Length PIC X(1) /Char
Position = 32

Thanks,
Hritam
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Tue Mar 31, 2009 9:04 pm
Reply with quote

I don't understand your description. Are file1 and file2 separate input files or separate output files or ? Are you trying to create file1 and file2 as separate output files and then concatenate them as output file3? Why? Why not just create them as output file3 in the first place?

Please show an example of the records in the input file, or in each input file, and the expected output file or files. Show relevant values in the records for the effective date field and ABC field. Give the RECFM and LRECL of the files.

As for the position, length and format of the fields:

I think you're saying that the effective date field starts in position 20, has a length of 10 and is character format (C'MM-DD-YYYY') - right?

I think you're saying that the ABC fields starts in position 32, has a length of 1 and is character format - right?
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top