The header record with 7777 is same as in both files. Need to write only data related to 7777 from the file1. Tried using splice 3rd example in application guide(SC26-7523-03) but couldnt remove the set of records and the order of file is getting changed.
1)Sequence Number for first 4 bytes is nothing but the ISPF screen number. Nothing to worry about it. Actual record start from X in header and A in detail.
2) LRECL is 68 and recfm is FB
3) Headers can be identfied as XXXXXX for first 6 bytes.
4) DFSORT Z/OS v1.10
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
I removed the sequence numbers from your first post and used ubb code tags.
It looks like you're showing what you got for output, not what you want for output - right? Please show an example of your expected output that corresponds to your example of input.
Please run this job and post the //SYSOUT messages so I can determine your DFSORT level:
First input file1 contains three set of records.
Second input file2 contains four set of records.
One set contains (One header and mutiple detail records).
The below given header record is duplicated in both the file.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX7777XXXXX
If we merge both the files we will have all seven set of records in output file.But in the given output file(File3) we have only six set of records where
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX7777XXXXX and its detail records are carried from first file to the output file. Second file data is eliminated for this duplicated header record.
The output file given below is what i am expecting.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
You dont have DFSORT. The SYSOUT messages suggest that your shop uses Syncsort. The topic will be moved to JCL forum where Syncsort topics are discussed.
Hi Arun is there some options available in syncsort to perform the above query.
I have used ICTOOL splice, and it does works fine with the syncsort. So does that mean i am not able to use ICETOOL commands.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
jose.jeyan,
The below SYNCTOOL application might be of help. I assumed the input/output LRECLs be 86 and the postion of the key in the header as 35,4. I could nt test this with actual files as I am yet to get my mainframe id