There are too many errors in you query. I have updated the syntax.
create proc samplep(
@fileid int)
as
begin
begin tran cproc
begin try
print 'some logic'
end try
begin catch
IF @@ERROR <> 0
BEGIN
PRINT 'Errors Found ... Rolling back'
ROLLBACK TRANSACTION cproc
RETURN
END
ELSE
begin
PRINT 'No Errors ... Committing changes'
COMMIT TRANSACTION cproc
end
end catch
end