Does anyone know how to create a PL/SQL script that will create a file for each USERID_2? The file will contain all records for a specific user. I would also like the file to be the name of the userid_2 (XXXXMW1). A copy of the table is as follows:
EDATE USERID_2 B_ B_ B_NUM T_ AO T_NUM
--------- -------- -- -- ------ -- ---- ------------
15-NOV-06 XXXXAS2 TO 10 Z0525Z TO 10 654T62318
15-NOV-06 XXXXDCM CT 04 CT 04 1017R900206
15-NOV-06 XXXXMET ET 04 ET 04 101JV7018
15-NOV-06 XXXXMSS AY 04 AY 04 0151A1FIX01
15-NOV-06 XXXXMW1 AL 02 AL 02 01516GC0401
15-NOV-06 XXXXMW1 AL 20 AL 20 0137MIKE01
15-NOV-06 XXXXMW1 TA 04 TA 04 01656MBW001
15-NOV-06 XXXXTMH AL 04 AL 04 0151200002
15-NOV-06 XXXXTMH SA 40 SA 40 0167BCTST01
15-NOV-06 XXXXTMH SY 04 SY 04 01516000119
EDATE USERID_2 B_ B_ B_NUM T_ AO T_NUM
--------- -------- -- -- ------ -- ---- ------------
15-NOV-06 XXXXAS2 TO 10 Z0525Z TO 10 654T62318
15-NOV-06 XXXXDCM CT 04 CT 04 1017R900206
15-NOV-06 XXXXMET ET 04 ET 04 101JV7018
15-NOV-06 XXXXMSS AY 04 AY 04 0151A1FIX01
15-NOV-06 XXXXMW1 AL 02 AL 02 01516GC0401
15-NOV-06 XXXXMW1 AL 20 AL 20 0137MIKE01
15-NOV-06 XXXXMW1 TA 04 TA 04 01656MBW001
15-NOV-06 XXXXTMH AL 04 AL 04 0151200002
15-NOV-06 XXXXTMH SA 40 SA 40 0167BCTST01
15-NOV-06 XXXXTMH SY 04 SY 04 01516000119