I am doing a software change for an existing module and am facing problems with defining arguments for a subroutine. To make my problem clearer, this is a sample of the original code
--------------------------------------------
Subroutine Packing(element,message, length)
Integer*2 element(*)
Integer*2 message(*)
Integer*4 length
message(1)=IBITS(element(1),0, 14)
.
.
.
length=16
End
-----------------------------------------------
Now, i want to change this source code by adding in a few lines, like the one given below:
------------------------------------------------
message(4)=IBITS(DAY,0,5)
------------------------------------------------
The variable "DAY" is defined as of type INTEGER*4. I was just wondering is it possible to add in new variables like "DAY" without changing the dummy arguments. So far, the dummy arguments in the subroutine only consist of "element", "message" and "length". Are variables like "DAY" covered by the dummy arguments "element"? Or do I have to add in additional dummy arguments in the subroutine? If so, what type of dummy argument should I add in?
--------------------------------------------
Subroutine Packing(element,message, length)
Integer*2 element(*)
Integer*2 message(*)
Integer*4 length
message(1)=IBITS(element(1),0, 14)
.
.
.
length=16
End
-----------------------------------------------
Now, i want to change this source code by adding in a few lines, like the one given below:
------------------------------------------------
message(4)=IBITS(DAY,0,5)
------------------------------------------------
The variable "DAY" is defined as of type INTEGER*4. I was just wondering is it possible to add in new variables like "DAY" without changing the dummy arguments. So far, the dummy arguments in the subroutine only consist of "element", "message" and "length". Are variables like "DAY" covered by the dummy arguments "element"? Or do I have to add in additional dummy arguments in the subroutine? If so, what type of dummy argument should I add in?