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
Original Message:
Sent: Thu February 24, 2022 05:56 AM
From: xq OW
Subject: label variables automatically
Dear all,
I have a question: I have a large file with more than 100 variables, they are all not labeled
I have another file with 2 columns: varNam and Label, the variable names in this file are identical with these in the large file
how can I label the variables automatically without typing more than 100 times:
variable labels var1 'total amount ...' ....
thanks for your suggestions in advance!
best regards
------------------------------
xq OW
------------------------------
#SPSSStatistics