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
 

 

Help in SORT logic

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

Active User


Joined: 17 Mar 2006
Posts: 171
Location: Bangalore

PostPosted: Wed Oct 06, 2010 6:03 pm    Post subject: Help in SORT logic
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    Post subject:
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: 171
Location: Bangalore

PostPosted: Wed Oct 06, 2010 7:18 pm    Post subject: Reply to: Help in SORT logic
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    Post subject:
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

Site Director


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

PostPosted: Wed Oct 06, 2010 9:23 pm    Post subject:
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 Moderator


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

PostPosted: Wed Oct 06, 2010 10:32 pm    Post subject:
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    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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am


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