View previous topic :: View next topic
|
Author |
Message |
sajjan jindal Warnings : 1 New User
Joined: 09 Sep 2007 Posts: 60 Location: india
|
|
|
|
Hi,
I have requirement such that my file contains the following three fields:
DATE S9(9)
UNITS S9(10)V999
CODE X
now if the above two fields contain invalid data I should be able to extract them from the file.
Definition of Invalid: Date and Units should not contain data other than numeric. Code should not contain data other than alphanumeric.
Regards,
Sajjan. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Code should not contain data other than alphanumeric. |
In other words, you are saying that any one of the 256 possible characters in EBCDIC is valid for this variable -- so what could possibly be an invalid character? Answer: there are no invalid characters. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Sajjan,
It's not clear what you want to do. Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the rules for getting from input to output. Give the RECFM and LRECL of the input file. Give the starting position, length and format of each relevant field. |
|
Back to top |
|
|
|