MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sort by ICETOOL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ta0010274
Beginner


Joined: 08 Jan 2008
Posts: 8
Topics: 3

PostPosted: Tue Jan 08, 2008 10:39 am    Post subject: Sort by ICETOOL Reply with quote

Hi All,

I need to write the records of File1 to a new output file if the account of File2 matches with file1 account and I need all duplicates as well. Can anyone help me in this issue please.

File1: Record length is 260 FB and account number is stating from 16th position.
Code:

6002007062929SC3149212803651   31492128034999234471FW  00000 
6002007062929SC3149212803651   31492128034999234479ZRMR00000 
7002007062929SC3149212803651   499923447ZZZ CIMOSGR  20061101
7002007062929SC3149212803651   499923447ZZZ COMOTSA  20010401


File2: Record length is 260 FB and account number is starting from 16th position. First fifteen characters and 29th position till end are blanks.

Code:

          3142090586613
          3149212803651
          3142091988106
          3142310928557
          3142318159895
          3142560339063
          3142617790008
          3142752102270
          3142757441105
          3142758861892
          3142758974804
          3142759006327
Back to top
View user's profile Send private message
ta0010274
Beginner


Joined: 08 Jan 2008
Posts: 8
Topics: 3

PostPosted: Tue Jan 08, 2008 10:42 am    Post subject: Reply with quote

Please anyone provide me the JCL, its very urgent.

Thanks in Advance
Thiru
Back to top
View user's profile Send private message
maxisnowhere
Beginner


Joined: 25 May 2005
Posts: 59
Topics: 20

PostPosted: Tue Jan 08, 2008 10:57 am    Post subject: Reply with quote

Hi Thitu,

i think I had the similar problem, maybe that help you:
http://www.mvsforums.com/helpboards/viewtopic.php?t=8492&highlight=
_________________
Maxisnowhere
Back to top
View user's profile Send private message
ta0010274
Beginner


Joined: 08 Jan 2008
Posts: 8
Topics: 3

PostPosted: Tue Jan 08, 2008 10:58 am    Post subject: Reply with quote

I have used belwo JCL but not getting any record to OUT file.

//IN1 DD DSN=TR2695.CRISC.DE52011A.DATASVCS.DUMP,DISP=SHR
//IN2 DD DSN=TR2695.CRISC.DE52011A.DIFAJUN(+1),DISP=SHR
//T1 DD DSN=&T1,DISP=(MOD,PASS),SPACE=(CYL,(1,1),RLSE)
//OUT DD DSN=TR2695.CRISC.DE52011A.DIFFAOUT(+1),
// DISP=(MOD,CATLG,DELETE),
// SPACE=(CYL,(10,75),RLSE),
// RECFM=FB,LRECL=260
//TOOLIN DD *
COPY FROM(IN2) TO(T1) USING(CTL2)
COPY FROM(IN1) TO(T1) USING(CTL1)
SPLICE FROM(T1) TO(OUT) ON(16,13,CH) WITH(1,260) WITHALL -
USING(CTL3)
//CTL1CNTL DD *
INREC BUILD=(01,260,13X)
//CTL2CNTL DD *
INREC BUILD=(16,13,260:X,16,13)
//CTL3CNTL DD *
OUTFIL FNAMES=OUT,
INCLUDE=(16,13,CH,EQ,261,13,CH),
BUILD=(01,260)
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Jan 08, 2008 11:34 am    Post subject: Reply with quote

It would have helped if you'd showed a better example with records that should and shouldn't be included in the output file, as well as showing the expected output records. But this DFSORT/ICETOOL job will give you what I'm guessing you want. Note that input file2 must be concatenated before input file1.

Code:

//S1    EXEC  PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG  DD SYSOUT=*
//CON DD DSN=...  input file2 (FB/260)
//    DD DSN=...  input file1 (FB/260)
//OUT DD DSN=...  output file (FB/260)
//TOOLIN DD *
SPLICE FROM(CON) TO(OUT) ON(16,13,CH) -
  WITHALL WITH(1,261) USING(CTL1)
/*
//CTL1CNTL DD *
  INREC IFTHEN=(WHEN=(1,2,CH,EQ,C' '),OVERLAY=(261:C'BB')),
        IFTHEN=(WHEN=NONE,OVERLAY=(261:C'VV'))
  OUTFIL FNAMES=OUT,INCLUDE=(261,2,CH,EQ,C'VB'),
    BUILD=(1,260)
/*


If that doesn't give you what you want, then show a better example of input and output, and give a better explanation of what you want.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ta0010274
Beginner


Joined: 08 Jan 2008
Posts: 8
Topics: 3

PostPosted: Thu Jan 10, 2008 6:47 am    Post subject: Reply with quote

Thank you very much Frank. Its working fine.
Back to top
View user's profile Send private message
n.kirankumar
Beginner


Joined: 15 Jan 2008
Posts: 1
Topics: 0

PostPosted: Fri Feb 15, 2008 3:48 am    Post subject: Reply with quote

Frank Yaeger,
Hi Frank,

Please help me with the below issue(***Urgent):

I have 2 input files with FB:

Data in file1 :

Name SSN Total
Jim 0001 876
Kim 0003 987
Joe 0004 787
Hen 0002 098
Loe 0005 876

Data in file2:

Name SSN Total M1 M2 Mtl D1 D2
Jim 0001 876 34 76 110 43 45
Joe 0004 787 65 35 100 32 21
Kim 0003 987 55 45 100 41 43


Output file needs to be like below:

Name SSN Total M1 Mtl D1
Jim 0001 876 34 76 43
Hen 0002 098
Kim 0003 987 55 45 41
Joe 0004 787 65 35 32
Loe 0005 876



The above 2 input files are not in sorted order.

Please let me know the solution for the above issue at the earliest.
_________________
Kiran
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Feb 15, 2008 4:12 am    Post subject: Reply with quote

1 - we do not 'do' urgent requests - we reply as and when we have time
2 - you are not fully describing the problem
3 - looks like homework - how can it be urgent if you started it on time?
4 - you should have started a new thread
5 - I suspect you want to BUILD your output record from the input so you should be looking for that

that is for starters
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Feb 15, 2008 2:00 pm    Post subject: Reply with quote

Kiran,

You posted this on another help board and it was answered there so I won't bother to answer it here.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group