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
 

 

Using JCL to know wheter Record Found or not

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

New User


Joined: 07 May 2009
Posts: 30
Location: Banglore

PostPosted: Fri Apr 25, 2014 5:36 pm    Post subject: Using JCL to know wheter Record Found or not
Reply with quote

Hello,

I have requirement to check whether the list of card numbers are present in a file or not..

say, File1 has the below data, Where first 5 characters represents Card number.

00001ABCDE
00012ACDSE
00014AAAER
00014ZSDFA
00009AZSDF
00019AATEW
00006AEWER
00011AMMPP

So Output should look like:

00001 RECORD FOUND
00002 RECORD NOT FOUND
.
.
.
.
00019 RECORD FOUND

Can anyone please help me doing it with sort.[/code]
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1722
Location: UK

PostPosted: Fri Apr 25, 2014 6:29 pm    Post subject: Reply to: Using JCL to know wheter Record Found or not
Reply with quote

Ah - by sort - not by JCL as thtile infers. Just as well because JCL cannot do it. Neither can anything else - given your input everything is either found or not found as you have not provided anything to compare against! Also, LRECL and RECFM, possibility of duplicates etc, would be useful once we know all the data specifications.

If you have a list to compare against then start looking and experimenting with JOINKEYS.
Back to top
View user's profile Send private message
ratnakumar

New User


Joined: 07 May 2009
Posts: 30
Location: Banglore

PostPosted: Fri Apr 25, 2014 6:38 pm    Post subject: Reply to: Using JCL to know wheter Record Found or not
Reply with quote

My bad,.. I should have mentioned it as SORT in the subject line...

File 1 has LRECL 231 (VB)
File 2 has LRECL 5 (VB)

And File1 being a daily data file, it may have duplicate records. File 2 has unique cardnumbers.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Fri Apr 25, 2014 8:02 pm    Post subject: Reply to: Using JCL to know wheter Record Found or not
Reply with quote

JOINKEYS, SUM FIEDLS=NONE on your file with duplicates. If you need it back in the original order, you'll have to SORT in the Main Task. Lots of examples here.
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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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