but my large file looks like this :.(

I tried these lines but it doesn't work
get file = "C:/Users/xoezen/temp/firstfile.sav" .
begin program python3.
import spss, spssdata
N=spss.GetVariableCount()
formula ={}
curs = spssdata.Spssdata()
for case in curs:
formula[case.varNam] = case.Labels
curs.CClose()
command1 = "get file = mylarge file. "
for n,c in formula.items():
command = "VARIABLE LABELS " + n + "'" + "'" + str(c) + ".\n"
spss.Submit(command)
end program.
------------------------------
xq OW
------------------------------
Original Message:
Sent: Thu February 24, 2022 07:46 AM
From: Rick Marcantonio
Subject: label variables automatically
Look up the APPLY DICTIONARY command. It takes such information from one file and applies it to another.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------