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

Is there any utility to count number of charecter in a file


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

New User


Joined: 17 May 2006
Posts: 17

PostPosted: Fri Jul 21, 2006 12:36 pm
Reply with quote

is there any utility to count number of charecter in a file........

WARNING: TITLE EDITED
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Sat Jul 22, 2006 12:52 am
Reply with quote

If you can edit or browse the file in TSO, you can search using a picture string:

Code:

    Example -   ===> find p'?' 1        find non-blank in column 1       
                                                                         
A picture string is a quoted string that is preceded or followed by the 
letter "P".  It can contain blanks, alphabetic and numeric characters   
which represent themselves, or any of the special characters listed     
below, each of which represents a class of characters.                   
    =  any character                   .  invalid characters             
    @  alphabetic characters           -  non-numeric characters         
    #  numeric characters              <  lower case alphabetics         
    $  special characters              >  upper case alphabetics         
    ?  non-blank characters 


The command would be:

Code:

F P'?'  ALL


? can be found using SHIFT and the number 6. This would not count blanks. If you want to include blanks:

Code:

F P'=' ALL
Back to top
View user's profile Send private message
chayanath

New User


Joined: 07 Mar 2005
Posts: 6
Location: vijayawda

PostPosted: Sat Jul 22, 2006 8:00 pm
Reply with quote

hi,
Go to fileaid,,In primary option menu select option 8...Give ur data set in single quotes...u will be taken to next screen asking for the function to enter.. then type TALLY hit enter...all the statistics pertaining to file that includes no of rec's.. no of characters..etc r displayed..type enter when u r prompted again....

Hope This may help uuu

Chaya
Back to top
View user's profile Send private message
bcmohanty

New User


Joined: 17 May 2006
Posts: 17

PostPosted: Sat Jul 22, 2006 9:02 pm
Reply with quote

no friend,
in file aid u can coynt only the number of records but not number of charecters
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts count contained values of several col... DB2 5
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
Search our Forums:


Back to Top