Identifying a Character,Numeric & Special Character using Sort

Created on Dec. 23, 2020, 12:10 a.m. - by Kotesh, G


Hi Team,

Can I get a sort card for identifying the below

Alphabets (A to Z) there should not be any hard coding.

For eg if there is any alphabet between position 10 to 15,records should be included in the file.

Similar case with Numbers and Special characters.

Thanks & Regards,

Kotesh


Comments (3)

Srinivasan, Panneer Selvam
Dec. 24, 2020, 7:57 a.m.

Check out the below examples. Hope this helps you. 

SORT - JCL To Include Numeric Data 
https://www.ibmmainframer.com/reference/jcl-example-sample-reference-code#item67 

//SYSIN DD * 
 OPTION COPY 
 INCLUDE COND=(10,5,FS,EQ,NUM) 
/* 

JCL SORT - Include Both Uppercase And Lowercase Characters Data(A-Z, a-z) 
https://www.ibmmainframer.com/reference/jcl-example-sample-reference-code#item70 

//SYSIN DD * 
 OPTION COPY 
 INCLUDE COND=(10,5,BI,EQ,MC) 
/*


Kotesh, G
Dec. 24, 2020, 9:40 a.m.
Thank You Srinivasan,will check it out.

Kotesh, G
Jan. 28, 2021, 9:32 p.m.

Thank You Srinivasan,Sorted out my issue.

Apologies for the delayed confirmation.

Kotesh.


Copyright 2020 by ibmmainframer. All Rights Reserved.