This is the CPYFRMIMPF command:
CPYFRMIMPF FROMSTMF('/qdls/edenimpt/pymanded.ttx') TOFILE(BETTY/E941) MBR
OPT(*ADD) FROMCCSID(37) RCDDLM(*CRLF) STRDLM('"') FLDDLM(',') RPLNULLVAL(
*FLDDFT)
This is the dds for E941:
A R PR941R
A EDEMP# 8
A LNAME 13
A FNAME 16
A GROSSPAY 12S 2
A NETPAY 12S 2
A FWTDED 12S 2
A MEDDED 12S 2
A SOCDED 12S 2
A WCBEN 12S 2
CPYFRMIMPF only copies first field of each record
I was able to get the records copied. I changed it to csv. It then only copied the records that did not have an amount. So I changed the numeric fields in the tofile to character. Then it worked. I would like to be able to have the numeric fields come in as numeric, but I can live with them as character.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 2  Replies