Delete data from column in Edit Mode.
Moderator: mickeydusaor
Delete data from column in Edit Mode.
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?
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?
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
- Robert Sample
- Global Moderator
- Posts: 1897
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Delete data from column in Edit Mode.
What are picture strings? I could not locate the details about them?William Collins wrote:Go into the Help and find out about Picture strings.
BNDS was helpful but they tough to use. If you forgot to reset them, they affect the entire profile!
- Akatsukami
- Global Moderator
- Posts: 122
- Joined: Tue Oct 20, 2015 3:20 am
- Location: Bloomington, IL
- Contact:
Re: Delete data from column in Edit Mode.
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
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Delete data from column in Edit Mode.
You can also locate information on Picture Strings in the online help. Try FIND, Specifying the character string.
Re: Delete data from column in Edit Mode.
And, with the BNDS, use the SHIFT left comand - '('
If you keep the bounds line displayed you should not forget to reset them!
If you keep the bounds line displayed you should not forget to reset them!
Regards
Nic
Nic
- 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.
- find an unused character in your data, like x'00'
Code: Select all
change ' ' x'00' all
Code: Select all
c p'=' '-' 40 50 all
Code: Select all
c '-----------' '' 40 all
Code: Select all
c x'00' ' ' all
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.
Reason: Removed the big font size.
Re: Delete data from column in Edit Mode.
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'
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Delete data from column in Edit Mode.
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.
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.
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