Hi, You can check this http://www.cobug.com/cobug/forums/cobolLang/65.shtml where they suggest a test for NULL against the address of a parameter. That worked for me too some time ago. Unless iterating through all parameters and checking for null there is no way to count them at the language level. Going Assembler or dipping into LE for that purpose would probably be an overkill (if only a few programs involved). Slava
________________________________ From: "Raupach, Robert E (CTO Architecture + Engineering)" <[email protected]> To: [email protected] Sent: Wednesday, 2 October 2013, 17:36 Subject: Determining number of Parameters passed to a COBOL program Greetings... A colleague asked me the following question: "Is there a way to determine how many parameters are being passed into a COBOL program?" I could show him in Assembler, but in COBOL, I wouldn't have a clue. Can someone advise? Thx, Bob R ************************************************************ This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
