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

To Read a file in I-O mode in an assembler program.


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

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Fri Aug 21, 2009 12:05 pm
Reply with quote

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
View user's profile Send private message
quest2008

New User


Joined: 12 Jun 2008
Posts: 22
Location: bangalore

PostPosted: Fri Aug 21, 2009 3:37 pm
Reply with quote

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
View user's profile Send private message
milind suman
Warnings : 1

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Mon Aug 24, 2009 1:45 pm
Reply with quote

Thanks for the Code !
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top