An endoscopic surgical stapler for applying a suture to tissue including an elongated tubular member, a first jaw positioned at the distal end portion of the tubular member and having a longitudinal axis, and a second jaw disposed in substantially parallel relation to the first jaw at the distal end portion of the tubular member. The second jaw is movable in a direction substantially perpendicular to its longitudinal axis toward the first jaw, while maintaining the substantially parallel relation between the first and second jaws. A stapling assembly is disposed in each of the first and second jaws and configured to apply surgical staples to the tissue such that a suture, in combination with the surgical staples, forms a purse string with the tissue when the surgical stapler is activated.