Darren, Yes you can I do it all the time, Do you want an example..?? Regards, Scott Ford IDF
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of GAVIN Darren * OPS EAS Sent: Friday, February 08, 2008 11:40 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Two COBOL questions You can pass the File-Name itself on a call to a subprogram, and this will expose the FCB to the subprogram, however I would guess this is protected storage and wouldn't let the program change any of the values. As it doesn't expose the DCB I don't think you could use this to dynamically change the DD and Dataset around, even if the FCB is alterable. To be honest I haven't played around with this; just know that it's available in the later releases of COBOL. Darren -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of R.S. Sent: Friday, February 08, 2008 2:18 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Two COBOL questions Both questions regard COBOL 1. JCL EXEC ...,PARM='parameter' Can I read data from PARM field in EXEC statement ? Any ACCEPT ? 2. Dynamic allocation Can I use permanent dataset without DDNAME ? In other words can I specify dataset name instead of ddname ? -- Radoslaw Skorupka Lodz, Poland -- BRE Bank SA ul. Senatorska 18 00-950 Warszawa www.brebank.pl Sąd Rejonowy dla m. st. Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, nr rejestru przedsiębiorców KRS 0000025237 NIP: 526-021-50-88 Według stanu na dzień 01.01.2007 r. kapitał zakładowy BRE Banku SA (w całości opłacony) wynosi 118.064.140 zł. W związku z realizacją warunkowego podwyższenia kapitału zakładowego, na podstawie uchwał XVI WZ z dnia 21.05.2003 r., kapitał zakładowy BRE Banku SA może ulec podwyższeniu do kwoty 118.760.528 zł. Akcje w podwyższonym kapitale zakładowym będą w całości opłacone. ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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