15 Replies Latest reply: Feb 12, 2014 1:46 AM by himanshu kumar RSS

    Can we use call function within a subroutine to call another subroutine??

    himanshu kumar

      //1st subroutine

      Sub createanddrop (vTableName)

      Store $(vTableName) into [$(vTableName).qvd];

      Drop Table [$(vTableName)];

      End Sub


      // 2nd subroutine

      sub pop

      FOR  i=1 to NoOfTables();

      LET vTable=TableName($(i) -1);

      CALL createanddrop($(vTable));


      NEXT i

      END SUB



      //Main call to subroutine

      Call pop;


      This is my code....I want to use call within a subroutine, so that I can pass parameter to another subroutine.