View previous topic :: View next topic
|
Author |
Message |
milind suman Warnings : 1 New User
Joined: 19 Aug 2009 Posts: 55 Location: Pune
|
|
|
|
Hello,
I have to read and update the same file in an assembler program . I have seen file declared in either Input mode or output mode only . Can i declare the file in I/O mode in assembler . Please help me , how can i do this in assembler . My file is PS .
Thanks |
|
Back to top |
|
|
quest2008
New User
Joined: 12 Jun 2008 Posts: 22 Location: bangalore
|
|
|
|
Please see the below sample code to update the PS file.
LA 3,INFILE1
OPEN ((3),UPDAT)
write the code to read the record and use the PUTX macro to update the record.
PUTX (3)
004000 INFILE1 DCB DSORG=PS,DDNAME=QS1,MACRF=(GL,PL),EODAD=EOF |
|
Back to top |
|
|
milind suman Warnings : 1 New User
Joined: 19 Aug 2009 Posts: 55 Location: Pune
|
|
|
|
Thanks for the Code ! |
|
Back to top |
|
|
|