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

Remote access & x'5F' ("NOT") character


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
StanislavL

New User


Joined: 07 Apr 2009
Posts: 5
Location: SPb, RF

PostPosted: Fri Apr 10, 2009 4:09 pm
Reply with quote

Hi, All! Sorry, if it's FAQ
What do people USUALLY do to obtain "¬" character in the source code ? icon_smile.gif
I use linux and c3270/x3270 clients to access MF. Copy-paste does not work well.
Now I have 2 solutions: 1. editor "hex" command icon_smile.gif 2. switch to french keyboard & press ALT+"~/`" icon_smile.gif
Is there a "normal" way ?

2nd: what's better if I want to download this source code to my PC & send it to anyone ? I mean - to avoid the problems with this character.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Apr 10, 2009 4:20 pm
Reply with quote

Recentley posted: Alt + "1,7,0 on numeric keypad of PC keyboard" - not sure if it will really solve the purpose you are looking for . . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 10, 2009 4:38 pm
Reply with quote

back in the days when I wrote code for a 16K machine, I used 'NOT' in my logic.

last 20 years or so, I have just learned to code differently.
I am an adherent to the standard of avoiding NOT.
every language allows for the 'IF/ELSE' type of logic and a NOP for the IF.

tends to be easier to read.
I realize there is legacy code (as well as new code) that utilizes NOT,
and sometimes it is difficult to change the logic
or convincing the bean-counters to invest the time to introduce the change.

as Anuj indicated, holding down the ALT and then depressing 1 7 0 (ASC 170) will give you a ¬.

again thx to Terry Heinze for the tip.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Fri Apr 10, 2009 8:34 pm
Reply with quote

this would depend on the codepage that you emulator is using.
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: Fri Apr 10, 2009 9:29 pm
Reply with quote

Hello and welcome to the forum,

To facilitate seeing how one's current terminal emulator "sees" things, i keep a member that contains hex values from x'00' to x'FF'.

The last bit of the x'5x' line:
Code:
  ; ¬
 45454
 0E0F0
When i see the ¬ on the 3270 screen, it can easily be pasted into wherever. . .

As has been mentioned, it is probably a good idea to use an alternative to "not". . .
Back to top
View user's profile Send private message
StanislavL

New User


Joined: 07 Apr 2009
Posts: 5
Location: SPb, RF

PostPosted: Tue Apr 14, 2009 3:54 am
Reply with quote

So, there is no any "usual" solution...

ALT + 170 does not work in linux icon_smile.gif
(Of course, I can assign any character to any key. But it's not "usual")

As to the construction "... then nothing; else something;", it's unreadable...
Back to top
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Tue Apr 14, 2009 4:33 am
Reply with quote

Sometimes I am using Linux with x3270 as well.
If it is REXX program, I use '/' instead of '¬', if it is JCL then I code '@' first and use TSO command below at the end. I don't think it is "usual", but it helps.

c @ x'5f' all
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Apr 14, 2009 4:51 am
Reply with quote

StanislavL,
Quote:
As to the construction "... then nothing; else something;", it's unreadable...


sounds as if you are justifying your coding practice.
i could almost hear you whining from here.
Back to top
View user's profile Send private message
StanislavL

New User


Joined: 07 Apr 2009
Posts: 5
Location: SPb, RF

PostPosted: Tue Apr 14, 2009 5:13 am
Reply with quote

dbzTHEdinosauer wrote:

sounds as if you are justifying your coding practice.


Sorry, sorry, sorry....
icon_pray.gif
2 or 3 times I was writing something like this in sh - because I always forget WHAT chagacter mean "NOT" there ... 353.gif

... And you can belive me: it's unreadable! icon_smile.gif icon_smile.gif icon_smile.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Apr 14, 2009 12:50 pm
Reply with quote

StanislavL,

It was unnecessary for me to have posted that comment.

I apologize.

though I did not say it, scripting languages without the use of NOT, can be unreadable.
Back to top
View user's profile Send private message
StanislavL

New User


Joined: 07 Apr 2009
Posts: 5
Location: SPb, RF

PostPosted: Wed Apr 15, 2009 3:10 pm
Reply with quote

I've just found that the character "¬" is used in regexp instead of "^" ... So, I have 2 other questions:
1. Where do we need "^" ?
2. Is it a good idea to modify local translation tables , to translate ASCII "^" <-> EBCDIC "¬" ?
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Remote Unload of CLOB Columns DB2 6
No new posts access the last host command CLIST & REXX 2
Search our Forums:

Back to Top