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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm


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