IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Removing garbage data from the fields


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Tue Jul 13, 2010 9:02 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 13, 2010 9:05 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jul 13, 2010 10:58 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top