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
 

 

How Assembler File Handling Macro Works?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
anki

New User


Joined: 04 Apr 2008
Posts: 23
Location: Pune

PostPosted: Thu Mar 05, 2009 12:49 pm    Post subject: How Assembler File Handling Macro Works?
Reply with quote

I am interested in knowing what happens in backend when OPEN, READ and CLOSE macro executes while performing operation in Assembler.

Also advise, if there is any document where I can get detail background processing of these and other freq. used assembler macros.

Thanks,
Ankit
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Thu Mar 05, 2009 1:15 pm    Post subject:
Reply with quote

Morning Sir !

Holy Bible or the Sangreal for Assembler programmers:
http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dz9zr002/CCONTENTS
Back to top
View user's profile Send private message
anki

New User


Joined: 04 Apr 2008
Posts: 23
Location: Pune

PostPosted: Thu Mar 05, 2009 1:23 pm    Post subject: Morning to you too..!!...
Reply with quote

This is really good link and I tried searching for content explaining OPEN, CLOSE and READ macro details, but couldn't found so. Let me know which section I can refer for the same.

Regards,
Ankit
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Mar 05, 2009 1:35 pm    Post subject: Reply to: How Assembler File Handling Macro Works?
Reply with quote

start from ...
http://www-03.ibm.com/systems/z/os/zos/bkserv/index.html#other_pubs

... proceed to Your zOS release ( 1.9 in this sample path )
http://www-03.ibm.com/systems/z/os/zos/bkserv/v1r9books.html

... List all z/OS V1R9.0 elements and features bookshelves
http://www-03.ibm.com/systems/z/os/zos/bkserv/zshelves9.html

1 ) ... DFSMS - 35 books
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DGT2BK71

1 ) ... using datasets ( for a general overview )
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D460/CCONTENTS?SHELF=DGT2BK71&DN=SC26-7410-07&DT=20070711232714

1 ) ... z/OS V1R9 DFSMS Macro Instructions for Data Sets
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D540/CCONTENTS?SHELF=DGT2BK71&DN=SC26-7408-05&DT=20070427024428
Back to top
View user's profile Send private message
anki

New User


Joined: 04 Apr 2008
Posts: 23
Location: Pune

PostPosted: Thu Mar 05, 2009 3:02 pm    Post subject:
Reply with quote

Thank you for details, I will go through them one by one with time.

Can you tell me what happen with the second PUT instruction in below statement?

OPEN (ABC,OUTPUT)
PUT TEMPAR_1,ABC <---- 1st put instruction
CLOSE ABC
OPEN (ABC,OUTPUT)
PUT TEMPAR_2,ABC <----- 2nd put instruction

Does 2nd PUT instruction will be written as a 2nd record in ABC file or will it overwrite 1st record?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Mar 05, 2009 3:06 pm    Post subject: Reply to: How Assembler File Handling Macro Works?
Reply with quote

it depends on the disp of the ddname

if DISP=MOD both will append
otherwise both will write from the beginning
Back to top
View user's profile Send private message
anki

New User


Joined: 04 Apr 2008
Posts: 23
Location: Pune

PostPosted: Thu Mar 05, 2009 3:45 pm    Post subject:
Reply with quote

Thanks.....
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 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
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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