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 

Question on record reading and deleting
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Thu May 24, 2007 9:46 am    Post subject: Reply with quote

Quote:

finally I got this error...I think we cann't delete a record from a file....


suma,

You need to get your basics right. Read the link posted in here

http://www.mvsforums.com/helpboards/viewtopic.php?p=40505#40505

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu May 24, 2007 10:07 am    Post subject: Reply with quote

suma,

you can't delete an ESDS record
you can't have dups with an INDEXED file

At this point, I would venture to say - the design of your system is in question. I am not trying to be nasty or sarcastic. Why do you need to delete these records? The record name suggests a daily activity to update another file based on this input. Are you deleting these records as a RESTART methodology?

If you would take a couple of moments and explain the process, we might be able to provide a solution - or hints to a solution - regardless of how old your compiler is.

By the way, those little squiggly-red-lines underneath words that you type in these posts means that the word is misspelled. If thru trial and error you can not remove the red, here is link to a really good on-line dictionary
_________________
Dick Brenholtz
American living in Varel, Germany
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 May 24, 2007 10:11 am    Post subject: Reply with quote

wot squiggly little red lines? I do not see any - what option am I missing? or not - as the screen would be full of squiggly red lines - some of them mine!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu May 24, 2007 11:10 am    Post subject: Reply with quote

Suma,

Please check this link which will give you various COBOL compiler messages.

http://www.mvsforums.com/helpboards/viewtopic.php?t=3190&highlight=errmsg
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu May 24, 2007 11:19 am    Post subject: Reply with quote

Kolusu,

The link posted by you routes to the same topic started:

Quote:

suma,

You need to get your basics right. Read the link posted in here

http://www.mvsforums.com/helpboards/viewtopic.php?p=40505#40505

_________________
Shekar
Grow Technically
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 May 24, 2007 11:22 am    Post subject: Reply with quote

And there are 2 links that point you to the correct place(s)
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu May 24, 2007 11:27 am    Post subject: Reply with quote

Shekar123
Quote:
The link posted by you routes to the same topic started:


So what ??? The answer to OP's question is there in the link - never mind whether it is the same thread or a different one.

Thanks,
Phantom
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu May 24, 2007 11:35 am    Post subject: Reply with quote

Thanks Phantom,

I was in the view that Kolusu by mistake wrongly posted the link.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Thu May 24, 2007 11:46 am    Post subject: Reply with quote

Quote:

I was in the view that Kolusu by mistake wrongly posted the link.


sekhar123,

I haven't lost it yet. atleast for now I know what I am linking

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Thu May 24, 2007 12:12 pm    Post subject: Reply with quote

dbzTHEdinosauer,


I have to create a daily cycle whose requirement is as follows....

copy the records from SOURCE-FILE into FIRST-FILE....


Create a program to read that FIRST-FILE and match against MATCH-FILE records. if the records

MATCH: write the needed information to the OUTPUT-FILE and DELETE the record from the File being read.
IF NO MATCH: then read the next record and process until end of file.These unmatched records should be kept to compare in tomorrows daily cycle(this same cycle will run again).


can anyone suggest a good logic for this.


thanks
Suma
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu May 24, 2007 12:43 pm    Post subject: Reply with quote

suma,

I would:
  • SORT
    • Input
      • Source-File
      • First-File (Son from yesterday)
    • Output
      • First-File (Father for today)
  • Pgm
    • Input
      • First-File (father for today)
      • Match-File
    • Output
      • First-File (Son for today)
      • Output-File

_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Thu May 24, 2007 1:24 pm    Post subject: Reply with quote

Thanks dbzTHEdinosauer......



regards
Suma
Back to top
View user's profile Send private message
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Thu May 24, 2007 1:37 pm    Post subject: Reply with quote

This is the bad link which mis guided me....which tell we can delete ESDS file records


http://www.cs.niu.edu/~davis/Fall%202006/04%20-%20VSAM%20ESDS%20and%20RRDS.ppt


Thanks
suma
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Thu May 24, 2007 1:43 pm    Post subject: Reply with quote

Quote:

This is the bad link which mis guided me....which tell we can delete ESDS file records


Did you read the link carefully? The record from an ESDS can be deleted logically , but not physcially.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu May 24, 2007 2:04 pm    Post subject: Reply with quote

Back in the 70's (3 computer generations ago and 100 OpSYS ago) IBM COBOL allowed for this logical delete on an ESDS file. The file then had to immediately go thru a VSAM reorg in order to drop the record (as well as properly seq the new ones that were added). But IBM dropped the DELETE as an allowable I/O function against an ESDS about 20? years ago. BS2000, Siemens version of MVS, still allows it. This Power Point Presentation was from a university, who's computer science departments are well known for changing/writing their own compilers.

That's why you should always refer to documentation about the compiler that you are using.

just another reason consultant work is so much fun: no one seems to read the change info for new releases.
_________________
Dick Brenholtz
American living in Varel, Germany
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 -> Application Programming All times are GMT - 5 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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