DFSORT by String



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

DFSORT by String

Postby coldplay1991 » Wed Nov 16, 2011 9:16 am

I tried this but wont work.

//SYSIN     DD *                         
    SORT FIELDS=COPY                     
     INCLUDE COND=(9,8,CH,EQ,C'JOE0015')
/*                                       


Any other ways to DFSORT by String
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: DFSORT by String

Postby dick scherrer » Wed Nov 16, 2011 10:26 am

Hello,

Stop posting "it didn't work". These too will now be locked / deleted if they are posted again.

You need to post the info generated by the run so we can see the problem.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: DFSORT by String

Postby Frank Yaeger » Wed Nov 16, 2011 11:56 pm

Coldplay,

Sigh. Didn't work how? If I run this DFSORT job:

//S1 EXEC PGM=SORT                               
//SYSOUT DD SYSOUT=*                             
//SORTIN DD *                                   
1234567<JOE0015 >ABC                             
1234567<JOE0016 >ABC                             
1111111<JOE0015 >CDE                             
1234567<JOE0015A>XYZ                             
//SORTOUT DD SYSOUT=*                           
//SYSIN     DD *                                 
    SORT FIELDS=COPY                             
    INCLUDE COND=(9,8,CH,EQ,C'JOE0015')         
/*     


SORTOUT, as expected, has:

1234567<JOE0015 >ABC       
1111111<JOE0015 >CDE       


So if it "won't work", there's something you're not telling us like:

1) Your input file is VB, not FB.
2) You want to look for 7 characters containing 'JOE0015' rather than 8 characters containing 'JOE0015 ' (trailing blank)
3) Something else

If you need more specific help, show an example of your input records, expected output records and your complete JES log for your run, and explain what you mean by "it didn't work".
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post