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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: To Read a file in I-O mode in an assembler program.
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    Post subject: Reply to: To Read a file in I-O mode in an assembler program
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    Post subject:
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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