Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Is there any utility to count number of charecter in a file
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    Post subject: Re: Is there any utility to count number of charecter in a f
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us