View previous topic :: View next topic
|
Author |
Message |
swarnasuneel
New User
Joined: 20 Apr 2012 Posts: 20 Location: chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
"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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Robert - I like it when my thoughts get similar to a Systems Programmer's way of thinking! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Anuj -- that could be scary! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Every bit setting is a valid binary number representation. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Please define "JUNK" (your interpretation)? |
|
Back to top |
|
|
|