Below job will give your expected output. Since it increases your LRECL by 8 bytes, I would recommend coding LRECL parm in your output file.
I guess we will wait until we hear from Frank or Kolusu to know if its appropriate to do so.
Below i am giving you the exact picture of the requirement.
Quote:
Check for '999' at position '3' and include those records only
According your code, you are using
Code:
1,5,CH,EQ,C'2 999')
Here i want the record which satisfies the value '999' at 3rd position. means might be the '2' record having some value at 2 nd position instead of space. so i cant check with '2 999' value. But your logic is correct. Please modify according to my requirement.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
sqlcode1,
Your SELECT statement should have ON(81,8,CH), not ON(31,8,CH).
Quote:
Since it increases your LRECL by 8 bytes, I would recommend coding LRECL parm in your output file.
I guess we will wait until we hear from Frank or Kolusu to know if its appropriate to do so.
The ID characters can be removed by adding the following to CTL1CNTL:
I apologies for the way of ask you about my work. And many thanks to you for the JCL code and it is working fine. Thanks to Frank also. You people are doing a great help to the IBM Mainframe world.
Here I want to change my requirement a slight. Could you please help me for the changed requirement also? I tried it by using your code, but I am getting different results.
Thanks for your help. I am in vacation for few days so that I am not able to reply you. I have tried with your code but I am getting the below mentioned error in SPOOL area.
Code:
1ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES A
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 02:48 ON THU A
0 OPTION COPY
JOINKEYS F1=INA,FIELDS=(81,8,A),SORTED,NOSEQCK
$
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
JOINKEYS F2=INB,FIELDS=(81,8,A)
$
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
JOIN UNPAIRED
$
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
REFORMAT FIELDS=(F1:1,80,F2:89,3)
$
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
Please let me know, whether my DFSORT version (Based on above SPOOL log) is compatible or not for using JOINKEYS.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
If the ICE005A messages are flagging JOINKEYS in position 2, then you don't have the DFSORT PTF for JOINKEYS installed. Ask your System Programmer to install z/OS DFSORT V1R10 PTF UK51707 (Nov, 2009). For more information on the functions available with this DFSORT PTF, see: