Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to verify Junk values in a field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to verify Junk values in a field
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: 8033
Location: East Dubuque, Illinois, USA

PostPosted: Mon Aug 27, 2012 7:54 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Aug 27, 2012 7:56 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Aug 27, 2012 7:58 pm    Post subject:
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: 8033
Location: East Dubuque, Illinois, USA

PostPosted: Mon Aug 27, 2012 8:01 pm    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Mon Aug 27, 2012 8:51 pm    Post subject:
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

Active Member


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

PostPosted: Mon Aug 27, 2012 9:15 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Aug 27, 2012 10:41 pm    Post subject: Reply to: how to verify Junk values in a field
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    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 Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us