View previous topic :: View next topic
|
Author |
Message |
Shivendu
New User
Joined: 20 Feb 2009 Posts: 14 Location: Workstation
|
|
|
|
Need to compare data in two files FILE1 and FILE2. Data which is present ONLY in FILE2 should be written to a new file FILE3.
File lenght:3518 bytes
13 bytes starting at 455th position and one byte from 471 poition together make the key
Below code not working
Code: |
COPY FROM(IN1) TO(T1) USING(CTL1)
COPY FROM(IN2) TO(T1) USING(CTL2)
SELECT FROM(T1) TO(OUT) ON(455,13,CH) ON(471,1,CH) NODUPS USING(CTL3)
/*
//CTL1CNTL DD *
INREC OVERLAY=(3519:C'1')
/*
//CTL2CNTL DD *
INREC OVERLAY=(3519:C'2')
/*
//CTL3CNTL DD *
OUTFIL FNAMES=OUT,INCLUDE=(3519,1,CH,EQ,C'2'),
BUILD=(1,3518)
/* |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Below code not working |
Please explain what is not working. What results do you expect and what are you getting.
Are your files FB or VB |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Below code not working |
Do not post "it is not working".
When something is not working you need to post the abend or error message(s) including the message ids. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
dick scherrer wrote: |
Hello,
Quote: |
Below code not working |
Do not post "it is not working".
When something is not working you need to post the abend or error message(s) including the message ids. |
...or wait until "psychic day" and then ask expat. |
|
Back to top |
|
|
Shivendu
New User
Joined: 20 Feb 2009 Posts: 14 Location: Workstation
|
|
|
|
Thanks all for ur support. It is done! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
I suppose that is just dandy. . .
The problem was never posted and now the solution is not posted. . .
d |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
dick scherrer wrote: |
I suppose that is just dandy. . .
The problem was never posted and now the solution is not posted. . .
d |
|
|
Back to top |
|
|
|