How to pass output of one stored procedure to the input of another
You must pass the value from the first SP to the second via a variable local to the master SP.  The bare bones of the code will look something like this:

create master_sp
..
declare @LocalVariable int;

exec first_sp
    @sp_parameter = @LocalVariable OUTPUT;

exec second_sp
    @sp_input = @LocalVariable;