"I want to continue playing for a few more years in fact I am targeting a comeback to the One-day side. As long as I am enjoying playing cricket I will carry on. And I will continue to try to give quality performances. When I decide to retire everyone will know about it," Younis said.
Younis became the fifth Pakistani batsman on Thursday after Javed Miandad, Inzamam-ul-Haq, Wasim Akram and Salim Malik to play 100 Tests for his country when he appeared in the second match against Sri Lanka in Colombo.
Younis also added that if circumstances allowed he would love to end his career captaining the team.
The former captain failed in the first innings of his 100th Test but said the biggest motivation for him was to break Miandad's record of most Test runs for Pakistan.
Younis said for him his career with Pakistan had been very special.
"There have been ups and downs but I have always kept faith in myself and God. There have also been many people who kept me motivated and pushed me to play on. For me the target has always been to do well for the team and see it win."
The senior batsman said his biggest regret was that Pakistan was not able to play home matches since 2009.
"Home crowds and supporters are a big plus point for any sportsman to do well. Playing at home is always a big incentive. Unfortunately for the last six years we have had to play abroad and it has not been easy for us," he said.
