Scott, To be thorough, yes, you have to do what Ben suggests. However depending upon your needs and depending upon how much the consequences of being wrong matter to you, it may be sufficient to check only the file's first record or few.
But as John says, there is no meta-information available about whether or not a file is line-numbered. Dave Cole REPLY TO: [email protected] ColeSoft Marketing WEB PAGE: http://www.colesoft.com 736 Fox Hollow Road VOICE: 540-456-8536 Afton, VA 22920 FAX: 540-456-6658 At 9/15/2011 04:58 PM, Binyamin Dissen wrote:
On Thu, 15 Sep 2011 16:13:54 -0400 Scott Bennett <[email protected]> wrote: :>Is there a way to know if a dataset contains line numbers? :> :>For example when I PROF a file in ISPF I can see that a dataset has "NUMBER :>OFF" or "NUMBER ON STD". I need a way, from within assembler ZOS data :>areas, to know if a dataset has line numbers so I can handle line numbers :>in a remote system correctly. Do what ISPF does, read the entire file and check whether each line has digits in the specific columns and that the value ascends. -- Binyamin Dissen <[email protected]> http://www.dissensoftware.com Director, Dissen Software, Bar & Grill - Israel Should you use the mailblocks package and expect a response from me, you should preauthorize the dissensoftware.com domain. I very rarely bother responding to challenge/response systems, especially those from irresponsible companies.
