TECHNOLOGY FOCUS - INORGANIC CHEMISTRY - Preferred Components: The ion exchange solution is a metal salt of the anion. The metal is an alkali metal or an alkaline earth metal.    TECHNOLOGY FOCUS - ORGANIC CHEMISTRY - Preferred Process: The process comprises: two N-substitution steps, where the anion component of the second N-substitution step is the ionic liquid anion, X-; or a single N-substitution step, where the anion component of the N-substitution step is the ionic liquid anion X-. The process additionally comprises an ion exchange of the N-substituted salt product with an ion exchange agent. Preferred Components: (A) additionally comprises an anion (X-) comprising bis(trifluoromethylsulfonyl)imide or dicyanamide (both preferred), hexahalophosphates, tetrahaloborates, halides, nitrates, sulfates, phosphates, carbonates, sulfonates, carboxylates or silicates. The sulfonates and carboxylates are alkylsulfonates and alkylcarboxylates respectively. The N-substitution agent is alkyl halides, alkyl sulfonates, aryl sulfonates, alkyl sulfates or aryl sulfates. (II) is azepane or 3-methylpiperidine. (II) is a by-product of the manufacture of 1,6-hexanediamine or 2-methyl-1,5-pentanediamine. (A) is 1-butyl-1-methyl-azepanium bis(trifluoromethanesulfonyl)imide, 1-butyl-1-methyl-azepanium dicyanamide, 6-azonia-spiro(5,6)dodecane bis(trifluoromethanesulfonyl)imide, 6-azonia-spiro(5,6)dodecane dicyanamide, 1-butyl-1,3-dimethylpiperidinium bis(trifluoromethanesulfonyl)imide, and 1-butyl-1,3-dimethylpiperidinium dicyanamide. SPECIFIC COMPOUNDS - The use of 1-butyl-1,3-dimethyl-piperidinium and 1-butyl-1-methyl-azepanium is specifically claimed as (I).    EXAMPLE - An equimolar amount of butyl bromide was added dropwise to a solution of azepane in methanol keeping the temperature at 20 degrees C. The mixture was hydrolyzed with potassium carbonate, extracted with ether, and dried. The solution was fractionally distilled at reduced pressure to give 1-butylazepane. A slight excess of methyl iodide was added dropwise to 1-butylazepane in dichloromethane keeping the temperature below 20 degrees C. The reaction mixture was then allowed to warm to room temperature, stirred and worked up to give 1-butyl-1-methylazipinium iodide. A slight excess of lithium bis((trifluoromethyl)sulfonyl)imide dissolved in water was added to an aqueous solution of 1-butyl-1-methylazipinium iodide, stirred for approximately 5 hours and worked up to give 1-butyl-1-methylazipinium bis((trifluoromethyl)sulfonyl)imide.