DataMigration Outbound - Creating Text File

jde811

Member
Hi All,

I am beginner in Worldsoft. Requirement is to read the data from JDE Tables and create the data in Text File as output.

Please share sample code(RPG,CL) or procedure to do outbound data migration program.

Thanks
 
You can copy the data into a flat file using either CPYTOIMPF, CPYTOPCD CL command.

Example:

CPYTOIMPF FROMFILE(LIB Name/Physical file Name) TOSTMF('\Directory Name\file Name') RCDDLM(*LF)

Lib Name - Testdta
Physical file name - X0010
Directory name - EDATA
File name - X0010.csv


CPYTOPCD FROMFILE(Library Name/Physical file name) TOFLR('Folder Name') TODOC(file name)

Lib Name - Testdta
Physical file name - X0010
Folder name - FDATA
File name - X0010.csv

All the best!!

There will be many examples over internet; google can help too!!

Mitu
World A7.1 ---> A9.1 / B7331 ---> 9.0
 
Back
Top