Question: def main ( ) : # Prompt for input values sdf _ file = input ( Enter the path to the SDF file:
def main:
# Prompt for input values
sdffile inputEnter the path to the SDF file:
emsfile inputEnter the path to the EMS file:
ppenddate inputEnter the first PP end date YYYYMMDD:
ppenddate inputEnter the second PP end date YYYYMMDD:
ppenddates ppenddate ppenddate
# Read SSN to EID mapping
ssneidmap readssneidmappingemsfile
# Process the SDF file
ppdata, bwdata processsdfsdffile, ssneidmap, ppenddates
# Create output folder
outputfolder fOutputfolderdatetimenowstrftimeYmd
osmakedirsoutputfolder, existokTrue
# Write output files
ppfilename ospath.joinoutputfolder, "PERPERFEMPLOYEES.csv
bwfilename ospath.joinoutputfolder, "REGULAREMPLOYEES.csv
writecsvppfilename, ppdata
writecsvbwfilename, bwdata
printfFiles saved in folder: outputfolder
if namemain:
main
Results:
Enter the path to the SDF file: F:SDFTranslationDPSDF
Enter the path to the EMS file: F:SDFTranslationDeptEMSEMSPersonNumberToLastcsv
Enter the first PP end date YYYYMMDD:
Enter the second PP end date YYYYMMDD:
Files saved in folder: Outputfolder
Now, we need to prompt user of where to save the folder along with its two created files. As you can see this def main function works just don't know where it saving the folder and files.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
