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

how to verify Junk values in a field


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swarnasuneel

New User


Joined: 20 Apr 2012
Posts: 20
Location: chennai

PostPosted: Mon Aug 27, 2012 7:49 pm
Reply with quote

In one of myFILE a field contains junk vlues. How we can test the field using JCL whether it contains JUNK values OR NOT.
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: Mon Aug 27, 2012 7:54 pm
Reply with quote

1. There is not such thing as "junk values" in data -- there may be valid data, and there may be invalid data, and there may data you did not expect, but the data came from somewhere and hence should not be considered "junk".

2. JCL executes programs. It cannot be used to determine what any data field has in it. If you wanted to use a utility like SORT or IDCAMS or IEBGENER, that MIGHT be possible. But just using JCL, all you can do is execute programs.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 27, 2012 7:56 pm
Reply with quote

"Junk" is a concept/thought -- it's not a key word in any language. What is "junk" for your application, can be prefectly valid for other application. And for that matter, nothing is junk; you, as a programmer just don't want that data to be processed by your application.

Said all that, what is that you define as "junk", can you identify that?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 27, 2012 7:58 pm
Reply with quote

Robert - I like it when my thoughts get similar to a Systems Programmer's way of thinking! icon_smile.gif
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: Mon Aug 27, 2012 8:01 pm
Reply with quote

Anuj -- that could be scary! icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 27, 2012 8:51 pm
Reply with quote

Hello,

Quote:
In one of myFILE a field contains junk vlues.
It will help if you post a few of these values . . .

Use HEX ON, copy/paste, and the Code tags.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon Aug 27, 2012 9:15 pm
Reply with quote

Every bit setting is a valid binary number representation.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Aug 27, 2012 10:41 pm
Reply with quote

Please define "JUNK" (your interpretation)?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top