In this large cohort real-world study, we used a novel text-mining technique to investigate the effect of age on the long-term effectiveness and irAEs of PD-(L)1 inhibitors in patients with stage III and IV NSCLC. This evidence concerns the gene CD274 and non-small cell lung carcinoma.