The earth is one huge magnet. Transporting long slender ferromagnetic materials in either the North to South or South to North direction can magnetize the members. The effect seems to be more severe when moving South to North and becomes more problematic as the material approaches the Earth's poles. The member is left with a Remnant Field, i.e., it is magnetized.
Wrapping the welding lead around the member is rarely an effective means of countering the Remnant Field unless the welding currant is AC. When using DC for welding, it is best to demagnetize the member before attempting to weld it. The problem is not as severe if the welding is performed near mid-length, but it can become so severe welding is very difficult if a butt joint at one end is required.
Demagnetization can be accomplished with a welding power source with AC or DC output. It is easiest if AC output is available and the member is not thicker than 1/2 to 3/4 inch. Heavier cross sections are easier to demagnetize using DC, but the process is more time consuming.
The member is wrapped with a number of turns of welding lead. The strength of the magnetic field produced is a function of the current times the number of turns. The field produced must be stronger than the Remnant Field that preexists in the member. If AC output is used to energize the system, start with the amperage set at the maximum value. Reduce the current to the minimum value while the system is energized. The welder used must have a continuous variable amperage control. Do not attempt to reduce the current while energized if the power supply uses taps to change the current. If the welding machine has "ranges", start with the highest range and progress to the lowest range. Then, using the lowest current range, repeat the process, but remove one turn of welding lead at a time until there is no turns left and the lowest current setting is used.
If a DC power supply is used, the process is similar, but the welding leads have to be switched back and forth to reverse the polarity as the current is reduced. It is best to energize the circuit, break the circuit, switch polarity, reduce the amperage, reenergize the circuit, break the circuit, switch the polarity, reduce the current, energize the circuit again, ...... Repeat the sequence using 20 to 30 repetitions, each time reducing the current and reversing the polarity.
Do not use the switch on the welding machine while it is under load to turn the machine off and on. connect one end of the welding lead that is wrapped around the member to a piece of scrap metal. Use the electrode to make and break the circuit. This prevents damaging the welding machine. The time to magnetize the member is nearly instantaneous. There is no need to energize the circuit for more than a couple of seconds. Strike the arc, break the arc, reduce the current (reverse the polarity if using DC output).
I have used this technique for over thirty years. It is very effective. If the steps are followed as outlined, the remnant field should be barely detectible using a Gauss Meter held at the end of the member once the process is completed. If more than one welder is welding on the member simultaneously, place the work piece connectors at the end opposite the welder. That causes the current from each welder to "Buck" each other and since the current can be thought of as vectors, cancel the effect of the counter current. If only one welder is welding on one end of the member, place the work piece connect near the location of the weld so the member is not remagnetized. Remember, passing current through a conductor also creates a magnetic field, it is circular to the direction of the current (Flemming's Right Hand Rule). The intensity of the magnetic filed is a function of the permeability time the current. So the strength of the magnetic field is reduced by using reduced current. Again, DC produces the most notable affects, so AC can be used to mitigate the strength of the magnetic field produced by the welding current.
Good luck.
Best regards - Al