Sharif made the remarks while chairing a meeting here of the ruling PML-N's parliamentary party to discuss the security situation and other national issues. (Agencies)
The opinions of parliamentarians should be taken into consideration regarding the dialogue process with the Taliban, he said.
The meeting decided that political parties would be taken into confidence regarding the government's future course of action.
However, the meeting did not make any decision on holding talks or launching operations against the militants despite a series of attacks by the banned Tehrik-e-Taliban Pakistan.
Sharif said every step will be taken for peace in the country. He further said Pakistan's soil should not be used for terrorist activity. The country cannot progress without eliminating terrorism and extremism‚ he added.
Security personnel are sacrificing their lives in the war against terrorism and their sacrifices will not go waste, he said.
Referring to relations with Pakistan's neighbours, Sharif said Islamabad wants cordial ties with India and all other neighbours.
Interior Minister Chaudhry Nisar Ali Khan briefed the lawmakers on an operation in Karachi, the security situation in the country and the Taliban's offer to hold talks.
According to media reports, Khan said a decision on holding talks or conducting an operation against the Taliban would be taken by Sharif and the country's leadership. However, he said he did not trust the Taliban any more as they were seeking talks and killing innocent people at the same time.
Finance Minister Ishaq Dar said terrorism has taken a toll on investment and industries.
There is intense speculation that the military would eventually be asked to launch targeted operations in North Waziristan Agency, a haven for Taliban and Al Qaeda elements. Over 30 troops were killed in recent Taliban attacks, including a suicide bombing near the army headquarters in Rawalpindi.
Sharif made the remarks while chairing a meeting here of the ruling PML-N's parliamentary party to discuss the security situation and other national issues.