Delete data from column in Edit Mode.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
utkarsh
Registered Member
Posts: 66
Joined: Fri Jun 21, 2013 10:32 pm
India

Delete data from column in Edit Mode.

Post by utkarsh »

Hi,

In a pgm, while in the edit mode, I'd like to delete all the fields present from colum 40 to 50. What command may I sue to delete these?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Delete data from column in Edit Mode.

Post by William Collins »

Go into the Help and find out about Picture strings.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Delete data from column in Edit Mode.

Post by Robert Sample »

And look up BNDS as well.
utkarsh
Registered Member
Posts: 66
Joined: Fri Jun 21, 2013 10:32 pm
India

Re: Delete data from column in Edit Mode.

Post by utkarsh »

William Collins wrote:Go into the Help and find out about Picture strings.
What are picture strings? I could not locate the details about them?

BNDS was helpful but they tough to use. If you forgot to reset them, they affect the entire profile! :shock:
User avatar
Akatsukami
Global Moderator
Global Moderator
Posts: 122
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL
Contact:

Re: Delete data from column in Edit Mode.

Post by Akatsukami »

Picture strings. Note that in z/OS V2.1 and above you can also use regular expressions.
"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Delete data from column in Edit Mode.

Post by William Collins »

You can also locate information on Picture Strings in the online help. Try FIND, Specifying the character string.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Delete data from column in Edit Mode.

Post by nicc »

And, with the BNDS, use the SHIFT left comand - '('

If you keep the bounds line displayed you should not forget to reset them!
Regards
Nic
User avatar
prino
Registered Member
Posts: 68
Joined: Sun Jun 01, 2014 4:15 am
Location: Vilnius, Lithuania
Contact:

Re: Delete data from column in Edit Mode.

Post by prino »

  1. find an unused character in your data, like x'00'
  2. Code: Select all

    change ' ' x'00' all
  3. Code: Select all

    c p'=' '-' 40 50 all
  4. Code: Select all

    c '-----------' '' 40 all
  5. Code: Select all

    c x'00' ' ' all
And hope that your data doesn't contain any other sequence of 11 minus signs...

And the relevance of this to JCL is?????
Last edited by Anuj Dhawan on Fri Nov 27, 2015 2:17 pm, edited 1 time in total.
Reason: Removed the big font size.
Robert AH Prins
robertahprins @ the.17+Gb.Google thingy
Some z/OS code here
utkarsh
Registered Member
Posts: 66
Joined: Fri Jun 21, 2013 10:32 pm
India

Re: Delete data from column in Edit Mode.

Post by utkarsh »

Is there an easy way to work on point 1 if there are more character of different nature:
1.find an unused character in your data, like x'00'
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Delete data from column in Edit Mode.

Post by William Collins »

If your data is "text" then any non-text value will do.

If you data contains packed-decimal fields, then chose any non-text whose hex-representation starts with A-F.

If your data contains binary fields, then you'd have to check, because any bit-combination could exist.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”