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
 

 

HEX ON and HEX OFF on a COBOL file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
bala.sachin

New User


Joined: 27 Feb 2013
Posts: 9
Location: India

PostPosted: Wed Feb 27, 2013 12:54 pm    Post subject: HEX ON and HEX OFF on a COBOL file
Reply with quote

Hello All,
When you put HEX ON on a file it shows the file with it's hexadecimal values,What are the situations in which HEX ON will be useful,I have gotten out of touch in mainframes and pls pardon me for this simple question
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Wed Feb 27, 2013 1:24 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

when the file You are looking at contains NON PRINTABLE characters
( for example packed / binary numbers )
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Feb 27, 2013 1:38 pm    Post subject:
Reply with quote

And when members here says that they have a "numeric field" but it's not "displayed" correctly...icon_biggrin.gif
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed Feb 27, 2013 4:21 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

What do you mean by "COBOL file"?

Do you mean a member in a PDS/PDSE which happens to contain a Cobol program? If so, the HEX ON/OFF is just there because it is part of the editor.

As an aside, It was an "old" way to get a hexadecimal value in a field. You type VALUE " ".

Code:
... VALUE "  ".


Then you turn HEX ON. Go down to the hex values and overtype the 40 and 40 to whatever value you require. Put a comment saying what value it contains and, if the hex happens to give a lower-case letter, warn about the dangers of making any change on the line whilst having CAPS on.

These days, you just do this:

Code:
... VALUE X"with required hex value".
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Feb 27, 2013 4:26 pm    Post subject:
Reply with quote

Quote:
and they'll waste a few minutes (or more) trying to work out what has happened (and may come up with assorted dumb theories, for extra fun).


What the hell is that Bill? Those people will come here on this forum for help. Thank you very much. icon_evil.gif
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed Feb 27, 2013 4:33 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

Sorry Peter, just for fun. I've edited it out.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Feb 27, 2013 4:40 pm    Post subject:
Reply with quote

Ok Bill, just teasing a bit.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed Feb 27, 2013 4:44 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

Well, I'm not re-typing it :-)

For those who have missed it, it was one of the "funniest" unattended-terminal weezes of all time. Almost up there with "turning the contrast way down", or "disconnecting the keyboard". Indulge in such trickery entirely at your own peril.
Back to top
View user's profile Send private message
bala.sachin

New User


Joined: 27 Feb 2013
Posts: 9
Location: India

PostPosted: Wed Feb 27, 2013 4:49 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

Hi Bill,

Thank you for the response

The file is a flat file which has records
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed Feb 27, 2013 4:57 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

Well, it is not a "COBOL file" then. It is just a dataset, or file if you like, which happens to have come from a Cobol program, but which has no different characteristics inherent because of that. If you look at any dataset, there is no way to tell from that itself that it has come from a Cobol program.

Why would you have HEX ON for a file? To see any "non-display" values. To create/amend test data where non-display values exist (like in binary or packed-decimal) fields.
Back to top
View user's profile Send private message
bala.sachin

New User


Joined: 27 Feb 2013
Posts: 9
Location: India

PostPosted: Wed Feb 27, 2013 5:06 pm    Post subject: Reply to: HEX ON and HEX OFF on a COBOL file
Reply with quote

Hi Bill,

Yep!It's a dataset :-P sorry for confusing u on that part

But I got your answer which is to view non-displayable data icon_biggrin.gif

Thanks
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm


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