Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Rewirting a variable block file in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Wed Nov 26, 2008 11:30 am    Post subject: Rewirting a variable block file in cobol
Reply with quote

Hi,
I am getting an abend while trying to rewrite a variable block file in cobol. Is it possible to perform rewrite operation in variable block files?
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: Wed Nov 26, 2008 12:10 pm    Post subject:
Reply with quote

Hello,

When you post "it didn't work" all you do is waste everyone's time.

What did you try (show the select, fd, open, read/re-write) and describe what error occurred. If the error is in the jes output, post that output. Mention the vsam return code.
Back to top
View user's profile Send private message
Cristopher

New User


Joined: 31 Jul 2008
Posts: 53
Location: NY

PostPosted: Wed Nov 26, 2008 12:11 pm    Post subject: Reply to: Rewirting a variable block file in cobol
Reply with quote

Hi,Please let us know the following thigs:
What is the abend code? Have you opened the file in I-O mode and was there a successful READ performed before going for the updation?

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Nov 26, 2008 1:16 pm    Post subject: Reply to: Rewirting a variable block file in cobol
Reply with quote

only if You do not change the record length
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Nov 26, 2008 1:29 pm    Post subject: Re: Rewirting a variable block file in cobol
Reply with quote

Hello,
sathish1760 wrote:
Is it possible to perform rewrite operation in variable block files?
Variable or Fixed - rewrite actually does not discriminate on this basis, it's just rewrite. You need to post what had been asked many times.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us