Detect Source Of Parameter: JCL PARM= Vs. Call By Program
Posted: Fri Jul 06, 2012 10:23 pm
Hello,
I'm relative new to assembler. I bought some books for reading and also coded a bit... The code isn't a problem in this post. At the moment the program works fine. I just want to advance it and I need an info.
I've written a program for a collegue. He wrotes a metal C program and needs a WTO in his C program. OK, so I wrote a very little program for him. OK. Works fine. Now he also want to call that program from job control with EXEC PGM=...,PARM='PARM TEXT'.
I know that the first halfword from the parameter is the length of the content of PARM=. In the WTO for the metal C program is no prefix with the length. There I just loop through the parameter and search for the end of the parameter.
So my question: How can I differ wheather the PARM comes from a call from a program (like Metal C) or it comes from batch with PARM=
Is there a control block or sth. where I can find something to identify the source?
Regards
I'm relative new to assembler. I bought some books for reading and also coded a bit... The code isn't a problem in this post. At the moment the program works fine. I just want to advance it and I need an info.
I've written a program for a collegue. He wrotes a metal C program and needs a WTO in his C program. OK, so I wrote a very little program for him. OK. Works fine. Now he also want to call that program from job control with EXEC PGM=...,PARM='PARM TEXT'.
I know that the first halfword from the parameter is the length of the content of PARM=. In the WTO for the metal C program is no prefix with the length. There I just loop through the parameter and search for the end of the parameter.
So my question: How can I differ wheather the PARM comes from a call from a program (like Metal C) or it comes from batch with PARM=
Is there a control block or sth. where I can find something to identify the source?
Regards