|
View previous topic :: View next topic
|
| Author |
Message |
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
| wabasaja wrote: |
Hi Skolusu,
Now I get it!
PS: btw…has the name / word skolusu something to do with…”the schools are..” |
Glad you figured it on your own. Sorry to disappoint you but my name has got nothing to do with schools. |
|
| Back to top |
|
 |
wabasaja
New User
Joined: 25 Jul 2012 Posts: 14 Location: germany
|
|
|
|
Hi skolusu, I just asked about the name because I saw that
"Skolu su" in Cze ch means "the schools are"..
Thx2u |
|
| Back to top |
|
 |
wabasaja
New User
Joined: 25 Jul 2012 Posts: 14 Location: germany
|
|
|
|
Hi Skolusu,
First of all…I hope you had a nice summertime and you are doing well!!!
You gave me some month ago your super supportive help related to the below JCL/DFSORT.
Is it possible to get btw..lets say as a byproduct within the same step… “all keys of F2 which are not in F1” if some use
“JOIN UNPAIRED,F1“?
Super Thx for any reply...have a nice day :-)!!!
PS:
| Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//INA DD DSN=Your Input VB 23000 file,DISP=SHR
//INB DD DSN=Your Input VB 2800 file,DISP=SHR
//SORTOUT DD DSN=Your Output file,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(X,Y),RLSE)
//SYSIN DD *
OPTION COPY
JOINKEYS F1=INA,FIELDS=(23,40,A)
JOINKEYS F2=INB,FIELDS=(23,40,A)
JOIN UNPAIRED,F1
REFORMAT FIELDS=(F1:1,4,?,F2:5,2796,F1:5)
INREC IFTHEN=(WHEN=(5,1,CH,EQ,C'B'), $ MATCH RECORDS
BUILD=(0001,04, $ RDW
2802,95, $ DATA BEFORE ADDRESS1
0201,25, $ REPLACED DATA1 FROM FILE2
2922,25, $ DATA BEFORE ADDRESS2
0251,25, $ REPLACED DATA2 FROM FILE2
2972)), $ REST OF THE FILE VB DATA
IFTHEN=(WHEN=NONE, $ NON-MATCH RECORDS
BUILD=(1,4,2802)) $ BUILD AS-IS
//*
|
|
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Yes, the way it is coded you'd need UNPAIRED,F1,F2 and you'd need your code to identify the "on 2 only" (5,1,CH,EQ,C'2') as an IFTHEN=(WHEN= before the IFTHEN=(WHEN=NONE).
You then include, in your BUILD associated with the IFTHEN=(WHEN=, the appropriate fields from the REFORMAT record which have been originally sourced from F2. |
|
| Back to top |
|
 |
wabasaja
New User
Joined: 25 Jul 2012 Posts: 14 Location: germany
|
|
|
|
Hi Bill...super thx for your message ...I will see, try and check asap..
today I had no chance..have a nice evening..time!!! |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|