-gram, comb. form forming nouns denoting a thing written or recorded (often in a certain way) (anagram; epigram; monogram; telegram).
-grammatic comb. form forming adjectives.
from or after Gk gramma -atos thing written, letter of the alphabet, f. grapho write