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: 743
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: 10210
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: 10210
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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