View previous topic :: View next topic
|
Author |
Message |
sengupta_hirok
New User
Joined: 11 Aug 2006 Posts: 2 Location: Kolkata
|
|
|
|
Hi everybody,,,
is it possible to edit a record in a file, programmatically, without making an extra copy of it..? |
|
Back to top |
|
|
Murali krishna
New User
Joined: 17 Feb 2006 Posts: 9 Location: chennai
|
|
|
|
Yes...it is possible to edit the record in a VSAM file without making a new
copy of it. |
|
Back to top |
|
|
rahul_kolhe
New User
Joined: 08 Nov 2006 Posts: 15
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
MFRASHEED
Active User
Joined: 14 Jun 2005 Posts: 186 Location: USA
|
|
|
|
If by edit you mean , change/replace a string then it can also be done using FileAid without a program. |
|
Back to top |
|
|
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
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 |
|
|
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
Hi !
@UmeySan
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 |
|
|
|