If you're asking about how compiling with OpenMP option affects other compilation details, you would need to specify which compiler you mean. You would probably need to post an actual example, preferably using a support forum specific to the compiler you have in mind.
The assignment of abc(1,1,1) does not occur. Two ways I can "fix" this code is one to remove the OMP commands and second to make the array 2D. Can you help? Or guide me as to where to look or what other forum to post in?
Not sure what you mean by saying "assignment does not occur". How do you know? Since you're not printing that value you don't know if it worked or not. In fact if the code is compiled with optimization the assignment may even be skipped as redundant code.
By the way, I mostly work on linux machines, so not sure if the following suggestion is helpful.
I have had problems with small codes (with simple openmp directives) like this before that I thought should have worked but didn't, and generally setting the stack size to something large solved the problem.
You may have to set the stack size for the shell to something large, and also set OMP_STACKSIZE to something large.