IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort - ALPHABETIC check in SORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 22, 2011 4:43 am
Reply with quote

Borrowing Frank's code

Code:
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYMNAMES DD *
ALPHA,' ABCDEFGHIJKLMNOPQRSTUVWXYZ'
WHOLERECORD,1,18,CH
//SORTIN DD *
ABCD1234
PQRS
PQRS8989
BNBUI
EWEWEW
9090909
//SORTOUT DD SYSOUT=*
//SYSIN DD *
  OPTION COPY
  OMIT FORMAT=SS,                       
       COND=(1,1,NE,ALPHA,OR,           
             2,1,NE,ALPHA,OR,           
             3,1,NE,ALPHA,OR,           
             4,1,NE,ALPHA,OR,           
             5,1,NE,ALPHA,OR,           
             6,1,NE,ALPHA,OR,           
             7,1,NE,ALPHA,OR,           
             8,1,NE,ALPHA,OR,           
             9,1,NE,ALPHA,OR,           
            10,1,NE,ALPHA,OR,           
            11,1,NE,ALPHA,OR,           
            12,1,NE,ALPHA,OR,           
            13,1,NE,ALPHA,OR,           
            14,1,NE,ALPHA,OR,           
            15,1,NE,ALPHA,OR,           
            16,1,NE,ALPHA,OR,           
            17,1,NE,ALPHA,OR,           
            18,1,NE,ALPHA,OR,
            WHOLERECORD,EQ,C'                  ')             
/*


Untested. I don't have a syncsort manual, but maybe it just needs C' ' or something else to get all the spaces at once.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 22, 2011 10:52 am
Reply with quote

Mr Woodger,

my respect. very good. with dfsort, the change works.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 22, 2011 11:51 am
Reply with quote

Thanks, I hope (know) you didn't test it with my data above :-)

Code:

This line intentionally left blank
ABCD1234
PQRS
PQRS8989
BNBUI
EWEWEW
9090909
 QYOUWANTTOKEEP
    THEQUICKREDFOX
     JUMPEDOVERTHE
           LAZYDOG
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top