Hi everyone, I want to ask some questions to clarify concepts and examples.
Question 1:
The DCB Macro has a number of parameters, and sometimes all of the information can be found in the paremeters for the macro and sometimes not. Where does the assembler look for the DCB information and in what order?
Question 2:
Suppose I am reading the directory of a PDS using QSAM. I have only read a directory block into a 256-byte buffer and have located the first member name, so register 6 = the address of the first name.
How do I describe how to locate the next member name (I want its address in register 7)?
Question 3:
This is an example in the book but don't really know how to complete it.
Suppose we are using BSAM for input, the BLKSIZE is 450 and LRECL is 50. The DECB for the input file is called INDECB and the DCB is called INDCB. The data in the file is all ordinary text.
We have these variables:
BUFFER DC 450x'00'
TABLE DC 9CL50
EOT DS F
We have just read the first block into buffer and want to copy the records into the table and set EOT = the logical end-of-table address. It is possible the block is a short block (may be a short file).
What I am trying to figure out is how to write the code to do this (we are dealing here with only one block)??
Thanks, I will keep trying to read notes to figure it out.