IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to edit a record in a file without Copying it


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sengupta_hirok

New User


Joined: 11 Aug 2006
Posts: 2
Location: Kolkata

PostPosted: Thu Nov 16, 2006 11:51 am
Reply with quote

Hi everybody,,,
is it possible to edit a record in a file, programmatically, without making an extra copy of it..?
Back to top
View user's profile Send private message
Murali krishna

New User


Joined: 17 Feb 2006
Posts: 9
Location: chennai

PostPosted: Thu Nov 16, 2006 5:20 pm
Reply with quote

Yes...it is possible to edit the record in a VSAM file without making a new
copy of it.
Back to top
View user's profile Send private message
rahul_kolhe

New User


Joined: 08 Nov 2006
Posts: 15

PostPosted: Thu Nov 16, 2006 11:27 pm
Reply with quote

What's about PS? Is there any open file mode which allows to read input and change it and wirte again in same file.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Nov 17, 2006 12:37 am
Reply with quote

EDIT is an ISPF function, which can be invoked programmatically.

do you mean modify? refer to documentation of the program language that you are using to determine how to 'modify' a record.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Fri Nov 17, 2006 1:21 am
Reply with quote

If by edit you mean , change/replace a string then it can also be done using FileAid without a program.
Back to top
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Mon Nov 20, 2006 7:17 am
Reply with quote

In ASSEMBLER you can do it like this:
Code:
         OPEN  (filedcb,UPDAT)
.....
         GET   filedcb
.....
.....    Do something to change the record
.....
         PUTX  filedcb

.....
filedcb   DCB DDNAME=ddname,DSORG=PS,MACRF=(GL,PL),BLKSIZE=0
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Mon Nov 27, 2006 4:37 pm
Reply with quote

Hi,

I tried to invoke the code which u had pasted. It is failing it in PC370 assembler. will it work only on IBM assembler.

Regards,
Gokul
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Nov 27, 2006 5:47 pm
Reply with quote

Hi !

@gokuldass

PC370 assembler is diffrent to IBM assembler.
I think this is a mainframe-forum as the title tells.

As you can see at line "DCB DDNAME=ddname,DSORG=PS,MACRF=(GL,PL),BLKSIZE=0" this is ass-code for a IBM environment on mainframe.



Regards, UmeySan
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Tue Nov 28, 2006 11:46 am
Reply with quote

Hi !

icon_cool.gif @UmeySan

icon_eek.gif

I know this is for mainframe-forum.

Is there any rule or constraint that we should not ask questions on PC assembler ?

Do you know, we can use the same line "DCB DDNAME=ddname,DSORG=PS,MACRF=(GL,PL),BLKSIZE=0" in PC370 assembler also. only difference is the ddname, in pc370 we have to give a dat or txt file.

other's are same only.

I hardly hate this type of replies which irritates me.

So please be kind on answering questions. If you doesn't know please don't answer.

Regards, Gokul
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top