Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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: 10326
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: 10326
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us