Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
X All command

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

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Thu Jan 06, 2011 6:17 pm    Post subject: X All command
Reply with quote

Can we give more than 1 condition in the X ALL command . For e.g. X ALL 'hello' 8 80 and 'display' 50 60. Wherever hello appears in column 8 to 80 and display in colm 50 to 60 should get excluded . Can this be done in VIEW mode with X ALL command ?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8152
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jan 06, 2011 6:31 pm    Post subject:
Reply with quote

Why not just do 4 commands?
Code:
x all
f 'hello' 8 80 all
f 'display' 50 60 all
flip
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jan 06, 2011 6:35 pm    Post subject: Re: X All command
Reply with quote

Removed by poster.
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Fri Jan 07, 2011 1:37 pm    Post subject:
Reply with quote

Hi Robert

I tried using the 4 commands , but it doesn't seem to give the desired result.

If hello appears between 8 to 80 and there's no display from 50 to 60 , then i want it in my output. With the above commands this record is geting excluded .
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Fri Jan 07, 2011 2:22 pm    Post subject:
Reply with quote

Then omit the flip command. icon_idea.gif
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Fri Jan 07, 2011 2:44 pm    Post subject:
Reply with quote

What i want to know is , can we give more than one condition in an X ALL command. Going by the above criteria , if hello appears in 8 to 80 and there's no display in 50 to 60 , then that record should be present , similarly vice-versa.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2081
Location: Silicon Valley

PostPosted: Fri Jan 07, 2011 8:21 pm    Post subject: Reply to: X All command
Reply with quote

I think you need to write an editor macro that examines each of your lines and determines whether to include or exclude.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jan 07, 2011 9:57 pm    Post subject:
Reply with quote

reset
x all 'hello' 8 80
f all 'display' 50 60
flip
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2081
Location: Silicon Valley

PostPosted: Sat Jan 08, 2011 10:42 am    Post subject: Reply to: X All command
Reply with quote

Code:

1.  hello
2.             display
3.  hello    display

He wants 1 and 2, but not 3.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Sat Jan 08, 2011 8:11 pm    Post subject:
Reply with quote

Try
Code:
X ALL
F C'DISPLAY' 50 60 ALL
C C'HELLO' '!@#$%' 8 80 ALL NX
X ALL
F '!@#$%' 8 80 ALL
C '!@#$%' C'HELLO' ALL NX
FLIP

Note: code the text strings (inside the quotes) EXACTLY as they will appear in the data being edited (i.e. all UPPERCASE (as shown), all lowercase, or exact CaMeL-CaSe; if the strings are not consistent throughout the data (upper/lower/camel-case), then the code above cannot be made to work properly).
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Jan 10, 2011 10:33 am    Post subject:
Reply with quote

Thanks Ronald..It did work icon_smile.gif
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 How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us