Per question #2, look up DYNALLOC. I don't know if there are any COBOL calls for it, but you can write a routine in C/C++, PLI, ASM or just about any other language to make an SVC 99 call.
David Logan -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Michael Knigge Sent: Friday, February 08, 2008 3:45 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Two COBOL questions R., > 1. JCL EXEC ...,PARM='parameter' > Can I read data from PARM field in EXEC statement ? > Any ACCEPT ? It is accessible from the LINKAGE-SECTION: LINKAGE SECTION. 01 PARM. 05 PARM-LENGTH PIC 9(4) COMP. 05 PARM-STRING PIC X(999). PROCEDURE DIVISION USING PARM. A00-BEGINN. DISPLAY 'PARM IS ' PARM-LENGTH ' BYTES LONG' DISPLAY 'PARM=' PARM-STRING(1:PARM-LENGTH) > 2. Dynamic allocation > Can I use permanent dataset without DDNAME ? > In other words can I specify dataset name instead of ddname ? AFAIK, no. Bye, Michael ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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