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 

TSO Edit - change command with single quote in 'from' value

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


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Jul 28, 2010 6:45 pm    Post subject: TSO Edit - change command with single quote in 'from' value Reply with quote

In TSO Edit mode, I'd like to insert a column containing a specified value.
In the example below, I want to change the contents of column 14 to an 'A' and shift over one position. So the end result would be:

ORIF=(5,EQ,C'A0'),
ORIF=(5,EQ,C'A1'),
etc.

Code:
----+----1----+--
*****************
ORIF=(5,EQ,C'0'),
ORIF=(5,EQ,C'1'),
ORIF=(5,EQ,C'2'),
ORIF=(5,EQ,C'3'),
ORIF=(5,EQ,C'4'),
ORIF=(5,EQ,C'5')


Can I issue a change command that has a single quote as the 'from' value ? Something to this effect:

ZONE 14 14
C (single quote) to (single quote followed by 'A') all

?

Thanks for any help...
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Jul 28, 2010 6:57 pm    Post subject: Reply with quote

C "C'" "C'A" ALL

Use double quotes as the delimiter the you can use single quotes within the from and to strings.
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: Wed Jul 28, 2010 6:59 pm    Post subject: Reply with quote

tcurrier,

Enclose the single quote in double quotes and issue the command

Code:

c "'" "'A'" 14l   


this will change single to 'A'

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Jul 28, 2010 8:22 pm    Post subject: Reply with quote

Thanks for your help....

One more question if I may ....

What option would I use to only change the 'A's in column 1 to a 'B' without changing the 'A's in column 5 ? Or would I need to use the 'ZONE' command first ? (i.e. 'ZONE 1 1')

C 'A' 'B' ALL would change all occurrences of A on each line ... I only want to change the first occurrence...

Code:

A    A
A    A
A    A
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Jul 29, 2010 12:05 am    Post subject: Reply with quote

PF1

c 'a' 'b' 1 all

basic. Works for find as well. and you have parameters e.g. word prefix suffix etc and then there are picture strings.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Jul 29, 2010 8:05 am    Post subject: Reply with quote

tcurrier wrote:
....would I need to use the 'ZONE' command first ? (i.e. 'ZONE 1 1')


ZONE command? Is that like BOUNDS but in some national language version?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Jul 29, 2010 12:05 pm    Post subject: Reply with quote

do a find
press pf1
press pf1 again
select sub option 2
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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