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

Help in SORT logic


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

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Wed Oct 06, 2010 6:03 pm
Reply with quote

Input File 1
FB LRECL=232 Key 1 to 11
Input file2
KSDS Average record size: 52
Maximum record size: 500
KSDS key length: 24
But from this key I want to compare with File1 11 Characters and produce output same as KSDS with MATCHED and UNMATCHED records

Input File1 FB:-
Code:

000000001602009020720001 20080207MGA01/01/1900METGEN MODEL A
000000001622010020720003 20080207MGC01/01/1900METGEN MODEL C
000000001642011020720005 20080207MGF01/01/1900METGEN MODEL F
000000001652011020720006 20080207RTA01/01/1900RETAIL MODEL A
000000001672011020720008 20080207RTH01/01/1900RETAIL MODEL H
000000001692011020720010 20080207RTJ01/01/1900RETAIL MODEL J



Input File2 KSDS:-

Code:
000000001602008020720001 20080207MGA01/01/1900METGEN MODEL A
000000001612008020720002 20080207MGB01/01/1900METGEN MODEL B
000000001622008020720003 20080207MGC01/01/1900METGEN MODEL C
000000001632008020720004 20080207MGD01/01/1900 METGEN MODEL D
000000001642008020720005 20080207MGF01/01/1900METGEN MODEL F
000000001652008020720006 20080207RTA01/01/1900RETAIL MODEL A
000000001662008020720007 20080207RTG01/01/1900RETAIL MODEL G
000000001672008020720008 20080207RTH01/01/1900RETAIL MODEL H
000000001682008020720009 20080207RTI01/01/1900RETAIL MODEL I
000000001692008020720010 20080207RTJ01/01/1900RETAIL MODEL J



Please help me out with this.
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Wed Oct 06, 2010 7:00 pm
Reply with quote

Could you please provide me your expected output.
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Wed Oct 06, 2010 7:18 pm
Reply with quote

I need MATCHED and UNMATCHED records in separate files with propertis like VSAM KSDS.

As such for the above example I don't have any expected output.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 06, 2010 7:24 pm
Reply with quote

shrivatsa wrote:
As such for the above example I don't have any expected output.

here are the appropriate control cards:
Code:

//SYSIN     DD * 
/*
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: Wed Oct 06, 2010 9:23 pm
Reply with quote

Hello,

Quote:
As such for the above example I don't have any expected output.
Nonsense. . . Of course you have expected output.

Now post the output files of matched and unmatched records that you want. No one here needs to "figure this out" - you need to post it.

You have been here for more than 4 years and should know this already. . .

d
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: Wed Oct 06, 2010 10:32 pm
Reply with quote

Also, run this job and show the //SYSOUT messages you receive, so I can see what level you're at:

Code:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
RECORD
//SORTOUT DD DUMMY
//SYSIN    DD    *
    OPTION COPY
/*
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top