Dipole-allowed transitions for the inner-shell C-1s(2 sigma(g)) --> 2 Pi(u) in CO2 and 2t(1u) --> 6a(1g), 2t(1u) --> 2t(2g), and 2t(1u) --> 4e(g) in SF6; for X (1) Sigma(+) --> A (1) Pi and X (1) Sigma(+) --> C (1) Sigma(+) in CO; for excitation of F-2 I (1) Sigma(u)(+) and the electronic states of SO2 are investigated at small scattering angles through the generalized oscillator strength using a recent universal function [A. Z. Msezane and I. A. Sakmar, Phys. Rev. A 49, 2405 (1994)]. The results cover the electron energy between 20 eV and 2.5 keV. Good agreement with existing experimental data and calculations is obtained for the inner-shell excitation of CO2 and the 2t(1u)-6a(1g) transition in SF6, implying that dynamic effects are unimportant at small scattering angles. The unmeasured differential cross sections (DCS's) in the angular range of about 0 degrees less than or equal to theta less than or equal to 2 degrees are found to contribute significantly to the integral cross sections, ranging from 40% to 69% at 300 and 500 eV in CO. The universal function approach provides an independent check of small-angle theoretical and experimental DCS's. Given reliable small-angle DCS's, the universal formula can be used to obtain reasonable values of optical oscillator strengths. Dynamic effects can also be investigated and are shown to be significant in the fourth positive band of CO at 500 eV, even near zero scattering angles. In contrast, dynamic effects are unimportant in the inner-shell excitation of CO2 at 1290 eV, up to large momentum-transfer-squared values, even though for the transition the first Born approximation should not be applicable. Results are presented and discussed.