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: 10274
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: 10274
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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