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
 
deleating the bad records in browse or view mode?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kanchanchouhan

New User


Joined: 05 Sep 2007
Posts: 11
Location: kolkata

PostPosted: Sun Feb 10, 2008 9:54 am    Post subject: deleating the bad records in browse or view mode?
Reply with quote

How to deleate the bad records in browse mode or view mode?or can we do that?
Please suggest.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Feb 10, 2008 9:57 am    Post subject:
Reply with quote

What do you mean by "browse mode or view mode"? Are you talking about ISPF Editor session?

O.
Back to top
View user's profile Send private message
kanchanchouhan

New User


Joined: 05 Sep 2007
Posts: 11
Location: kolkata

PostPosted: Sun Feb 10, 2008 10:17 am    Post subject: Reply to: deleating the bad records in browse or view mode?
Reply with quote

yes Sir, I am talking about ISPF editor Session.
According to my knowledge we can deleate the bad records in Edit mode.
Kindly suggest me can we do in browse or view mode as well?and how?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Feb 10, 2008 10:19 am    Post subject:
Reply with quote

Hello,

How is a "bad record" defined?

When you have a question, it is usually a good idea to post some sample "input" data and what you want to happen to that data.
Back to top
View user's profile Send private message
kanchanchouhan

New User


Joined: 05 Sep 2007
Posts: 11
Location: kolkata

PostPosted: Sun Feb 10, 2008 10:31 am    Post subject: Reply to: deleating the bad records in browse or view mode?
Reply with quote

Hello Sir,

Senerio is we have a file wherein we have records which neeeds to be deleated as those few records are not required but the file is opened in browse mode,so can we deleate in this mode.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Feb 10, 2008 10:35 am    Post subject:
Reply with quote

Again - What do you mean by "opened in browse mode"? Is it open in your editor, or by a program?

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Sun Feb 10, 2008 1:47 pm    Post subject: Reply to: deleating the bad records in browse or view mode?
Reply with quote

What does the ISPF documentation say about ...
BROWSE, VIEW, EDIT ??

the answer is there

if You have write access to the dataset no reason not to use edit.

But... as usual there are many gotchas

if a dataset containing application data, it is usually forbidden
to update it outside a proper environment.
( batch program, online transaction )
these environments are auditable, an ISPF edit session is not

the paperwork which has to be done for such an action
usually takes more time than to write a program icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Feb 11, 2008 2:07 am    Post subject:
Reply with quote

Hello,

Again, to be of much help, we need some usable info. . .

Quote:
Senerio is we have a file wherein we have records which neeeds to be deleated as those few records are not required but the file is opened in browse mode,so can we deleate in this mode.


Some sample records (good and bad) might help us see what you are trying to do. Knowing how the file became "opened in browse mode" would help us help you.

The answer may be to simply "edit" the file - i do not understand why browse an issue. Keep in mind that if this is some production file, i strongly suggest some record of the deleted records be kept. Simply adding/changing/deleting production records with an editor is a very bad practice.

Keep in mind that while your question is completely clear to you, it may not be to those who read it.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Feb 11, 2008 4:40 am    Post subject: Re: deleating the bad records in browse or view mode?
Reply with quote

kanchanchouhan wrote:
How to deleate the bad records in browse mode or view mode?or can we do that?
Assuming you have the authority to delete some of these records and the dataset is too large to put in edit mode, no, you can't delete in view or browse mode....
FileAid might be able to do this, or, by record count (from the browse and/or view mode), or, by specific identification of the 'badness', Sort could do what you need.....
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Feb 11, 2008 7:44 am    Post subject:
Reply with quote

I don't know if IBM changed the rules, but you could delete/change recs in view mode by entering "X ALL" in the cmd line after the changes were made. Then enter "C" in the cmd line to the left of the "dash" line (----) and enter "REPLACE membername" in the cmd line, where membername is the name of the member you updated.

That being done, use "CAN" in the cmd line to end the process.
Back to top
View user's profile Send private message
kanchanchouhan

New User


Joined: 05 Sep 2007
Posts: 11
Location: kolkata

PostPosted: Mon Feb 11, 2008 1:06 pm    Post subject: Reply to: deleating the bad records in browse or view mode?
Reply with quote

Thank u so much to all.
Sort with omit record is working fine now.

I got a clue.

Thanks
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Format Last Record differently from r... Learncoholic DFSORT/ICETOOL 0 Tue Oct 24, 2017 12:01 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am

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