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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Is it possible to edit a record in a file without Copying it
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    Post subject: Re: editing a file in PL/1
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    Post subject: Re: Is it possible to edit a record in a file without Copyin
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    Post subject: Re: Is it possible to edit a record in a file without Copyin
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    Post subject: Re: Is it possible to edit a record in a file without Copyin
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    Post subject:
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    Post subject: I am unable to use PUTX.
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: 755
Location: Germany

PostPosted: Mon Nov 27, 2006 5:47 pm    Post subject:
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    Post subject: hmm..
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


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