Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us