MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

zOS 2.1 REGEX Square Brackets

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Fri Jul 11, 2014 10:25 am    Post subject: zOS 2.1 REGEX Square Brackets Reply with quote

in z/OS 2.1 we can use REGEX to perform FIND operations in ISPF editor. Often this requires use of square brackets. Does anyone know how to type a Square Bracket symbol '[' or ']' on Reflection 3270 emulator?
Thanks!
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Fri Jul 11, 2014 10:43 am    Post subject: Reply with quote

I'm using ver 14.1.75 and I don't know of a way to key them. They are X'5B' and X'5D' respectively but Reflection Attachmate displays them as "$" and ")". In decimal, they are 091 and 093. You might be able to map them via Setup and Keyboard...
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Jul 11, 2014 12:08 pm    Post subject: Reply with quote

sumithar,

Check this link for Inserting and viewing square brackets during an ISPF edit session

Alternatively I open a notepad and type in the REGEX command and then copy and paste in ISPF.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Fri Jul 11, 2014 2:16 pm    Post subject: Reply with quote

kolusu wrote:
sumithar,

Check this link for Inserting and viewing square brackets during an ISPF edit session

Alternatively I open a notepad and type in the REGEX command and then copy and paste in ISPF.


OK, I can't make head or tail of that link, sorry! Where is the member CCNGMV2 even if i want to try and execute it?

I will stick with your notepad option- thanks for that...
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Jul 11, 2014 2:38 pm    Post subject: Reply with quote

sumithar wrote:

OK, I can't make head or tail of that link, sorry! Where is the member CCNGMV2 even if i want to try and execute it?


Sample ISPF macro for displaying square brackets
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Mon Jul 14, 2014 9:20 am    Post subject: Reply with quote

kolusu wrote:
sumithar wrote:

OK, I can't make head or tail of that link, sorry! Where is the member CCNGMV2 even if i want to try and execute it?


Sample ISPF macro for displaying square brackets


Actually I had found that piece of code and uploaded it to our PDS that contains all the Edit macros. but I can't figure out how I use this to type in a square bracket- this seems to be concerned with displaying square brackets. Just for giggles I created a file on my PC with some square brackets and uploaded it to the host and opened it in the ISPF editor. It displayed the brackets like so


I typed CCNGMV2 on the command line and it changed it to this


Not very useful!
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Jul 14, 2014 11:54 am    Post subject: Reply with quote

sumithar wrote:
Just for giggles I created a file on my PC with some square brackets and uploaded it to the host and opened it in the ISPF editor. It displayed the brackets like so


I typed CCNGMV2 on the command line and it changed it to this


Not very useful!


Well what is the PC code list you have on the transfer ? You should have 1252. You seem to have translated the [ which is X'BA' and ] which is X'BB' but your transfer seem to translate them to X'AD' and X'BD' instead. So correct your PC-code page and you should be ok.

I transferred a file with [ and ] and it was sent as is



Code:

Command ===>                 
****** ***********************
000001 [[[[[                 
       BBBBB400004444444444444
       AAAAA000000000000000000
------------------------------
000002 ]]]]]                 
       BBBBB444444444444444444
       BBBBB000000000000000000
------------------------------

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Mon Jul 14, 2014 1:07 pm    Post subject: Reply with quote

Thanks for that tip, Kolusu. I do my ftp from the command line, so I needed to execute this before my ftp
quote site sbd=(IBM-037,IBM-1252).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group