.st0{fill:#FFFFFF;}

IFS File system error occurred. Error number 3021? 

 July 8, 2019

By  NickLitten

Some of IBM’s error messages are more cryptic than others. Copying files from the IFS using CPYFRMIMPF sometimes spits out error messages which are less than clear:

CPYFRMIMPF FRMSTMF('/FOLDER/FOLDER/FILE') TOFILE(*LIBL/FILENAME) MBROPT(REPLACE) RCDDLM(LF) STRDLM(NONE) RMVBLANK(NONE)FLDDLM(TAB) ERRRCDOPT(REPLACE) RPLNULLVAL(FLDDFT)
File system error occurred. Error number 3021
Copy command ended because of error.

Internet Search for CPYFRMIMPF 3021 shows nothing!

How to find CPYFRMIMPF error codes?

Lookup the related CPE error message: DSPMSGD CPExxxx

so, in this case, 3021 means

DSPMSGD CPE3021
IFS File system error occurred. Error number 3021? 1
DSPMSGD RANGE(CPE3021) MSGF(QCPFMSG)

In this case the ‘value specified for the argument is not correct‘ is telling us that the FRMSTMF value is incorrect, or file is not found.

Fix the FRMSTMF file name or add some error checking to your program code.

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

Get In Touch

Iā€™m always looking for awesome input, feedback and critique!

>