Section 385(2) in The Code of Criminal Procedure, 1973
(2)The Appellate Court shall then send for the record of the case, if such record is not already available in that Court, and hear the parties :Provided that if the appeal is only as to the extent or the legality of the sentence, the Court may dispose of the appeal without sending for the record.