Hi,

Wang Rong posted the following:

"    Are there any way to perform file I/O in Assembler program without
define a DD card in the calling JCL. For some reason, I want to give the
file name in Assembler source, not in the calling JCL. Can OPEN macro do
that?
    By the way, I can't find the description of some macro such as OPEN,
GET, DCB in the IBM read books, Can some tell me where to find them?"

A DD Statement is converted to internal format as a JCFB + JFCBX as necessary I 
believe, and a JFCB is necessary as part of the allocation process. If a DD 
statement isn't available, then the use of Dynamic Allocation is called for to 
create the necessary structures to allow file allocation. A search of the 
archive of this site should produce numerous hits on Dynamic Allocation.

The OPEN, DCB macros etc are in the DFSMS Macro Instructions for Data Sets 
manual, not a Red Book, and the manual can be found at:

http://publibz.boulder.ibm.com/epubs/pdf/dgt2d511.pdf

Kind regards - Terry

Terry Sambrooks
Director
KMS-IT Limited
228 Abbeydale Road South
Dore
Sheffield
South Yorkshire
UK

Tel +44 (0) 114 262 0933
Web www.kmsitltd.co.uk

Reg: England & Wales 3767263 at the above address

All outgoing E-mails are scanned but it remains the responsibility of the 
recipient to ensure that their system is protected from infection by virus, 
Trojans, and worms.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to