May I know how to count the number of non-blank characters in a particular column of file....
Means Let us suppose we have blanks and non-blanks in column 10...then how to count all non-blank characters in column 10 using F ALL command or any command is there...
1. it should count only alphabets.
2. it should count only numerics.
You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's NUM function. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
You can use the picture option of the find command, if you use ISPF editor:
P'='
Any character
P'?'
Any character that is not a blank
P'.'
Any character that cannot be displayed
P'#'
Any numeric character, 0-9
P'-'
Any non-numeric character
P'@'
Any alphabetic character, uppercase or lowercase
P'<'
Any lowercase alphabetic character
P'>'
Any uppercase alphabetic character
P'$'
Any special character, neither alphabetic nor numeric.
For example, if you want to count the number of rows containing numeric characters at column 10, you should use the following command: FIND ALL P'#' 10 10. The number of matched rows will be displayed as a short message (usually at the upper right corner of the screen).