You might have seen my book on macro programming published through McGraw-Hill.
CNC Programming using Fanuc Custom Macro B: S.K Sinha: 9780071713320: Amazon.com: Books

Here is another book (Kindle edition only) which explains in detail how to enter and edit a program using the MDI panel of a Fanuc CNC machine. I wanted to make it free, but anything given for free loses its importance. I, therefore, have kept a token price of US$4.99 only.
CNC Programming Skills: Program Entry and Editing on Fanuc Machines - Kindle edition by S.K Sinha. Professional & Technical Kindle eBooks @ Amazon.com.

Do you know how to insert a part of a program into another program at the desired location? Background editing?? Using PCMCIA card??? Or, maybe, a simple task such as replacing G02 by G03 in the whole file????
When it comes to manual program entry on the machine, or searching / deleting / editing / copying / moving / inserting an existing program residing in the control memory or the PCMCIA card, most people resort to trial and error method. While they might be able to accomplish what they desire, the right approach would save a lot of their precious time. If this is exactly what you want, this book is for you. The information contained herein is concise, yet complete and exhaustive.
The best part is that you can enjoy the convenience of having the wealth of useful information on editing techniques even on your smart phone which is always with you! You would often need to refer to it because it is not possible to memorize all the steps which are many a time too complex and devoid of common logic, so as to make the correct guess.

The following excerpt from the book would give an idea of the methodical and step-by-step approach adopted in the book:

"The following operation will save program number 1234 in the memory card, with the name TESTPROG:
• Select the EDIT mode on the MOP panel.
• Press the PROG key on the MDI panel.
• Press the next menu soft key (►).
• Press the soft key CARD.
• Press the soft key OPRT.
• Press the soft key PUNCH.
• Type 1234 and press the soft key O SET.
• Type TESTPROG and press the soft key F NAME.
• Press the soft key EXEC.
While the file is being copied on the memory card, the character string OUTPUT blinks at the lower right corner of the screen. Copying may take several seconds, depending on the size of the file being copied.
If a file with file name TESTPROG already exists in the memory card, it may be overwritten unconditionally or a message confirming the overwriting may be displayed, depending on a parameter setting. In case of such a warning message, press the EXEC soft key to overwrite, and CAN soft key to cancel writing. However, system information such as PMC ladder is always overwritten unconditionally. The copied file is automatically assigned the highest existing file number plus one. The comment, if any, with the O-word (i.e., in the first block of the program) will be displayed in the COMMENT column of the card directory.
To write all programs, type -9999 as the program number. In this case, if file name is not specified, all the programs are saved in file name PROGRAM.ALL on the memory card. A file name can have up to 8 characters, and an extension up to 3 characters (XXXXXXXX.XXX). Repeat the last three steps to copy more files. Finally, press the CAN soft key, to cancel the copying mode and go to the previous menu".