NSCCGen:  Interface to the National Securities Clearing Corporation's Fixed Income Transaction System (FITS)

NSCCGen generates two files, nscc.trk and prevnscc.trk, to be submitted to the NSCC.  These files will be created in the directory specified by the OUTPUT_DIR parameter in the [NSCC] section of the afstrade.ini file.

The nscc.trk file is generated according to the FITS MUNICIPAL TRADE DETAIL Format (NSCC Sysid # 17607), and contains qualifying approved trades from the current trading day which have not already been submitted...trade date equal to the current trading date.

The prevnscc.trk file is generated according to the FITS MUNICIPAL SUPPLEMENTAL Format (NSCC Sysid # 17603), and contains qualifying approved trades from previous trading days which have not already been submitted...trade date prior to the current trading date.  Note:  If no trades with a previous trade date were approved on the current trading date then the prevnscc.trk file will not be created, and only the nscc.trk should be transmitted to the NSCC.

The formats of these files are described in the Fixed Income Formats section on the NSCC's website.  A user name and password, which can be obtained from the NSCC, are required to access these file formats.  

Users can submit the files to the NSCC from the PC Web Direct Launch Page.  For instructions see the Upload section of the pcWebDirect User Guide.

After the NSCC files have been generated, the user will be prompted to transmit the files.  At this point the user should submit the nscc.trk and prevnscc.trk files to the NSCC.

The user will be asked if the transmission of the files to the NSCC was successful.  If the files were submitted successfully to the NSCC then the user should answer "Yes"; otherwise the user should answer "No".  

  • If "Yes", the tickets that were included in the nscc.trk and prevnscc.trk files will be marked as sent in the afstrade database so that they won't be included the next time NSCCGen is run.  The files will be copied to the archive directory specified by the ARCHIVE_DIR parameter in the [NSCC] section of the afstrade.ini file, and the files in the archive directory will be renamed as follows:  
    • nsccDaily-<yyyymmdd>-<file sequence #>.txt    (ex. nsccDaily-20031219-1.txt)
    • nsccPrev-<yyyymmdd>-<file sequence #>.txt     (ex. nsccPrev-20031219-1.txt)
  • If "No", the tickets that were used to generate the files won't be marked so that they will be included the next time NSCCGen is run.

If the directories to which the generated NSCC files will be saved do not exist, NSCCGen will create them automatically based on the values of the OUTPUT_DIR and ARCHIVE_DIR parameters in the [NSCC] section of the afstrade.ini file.

Each time NSCCGen is run a log file will be created in the directory specified by the LogFileDirectory parameter in the [AFSTrade] section of the afstrade.ini file.

Note:  NSCCGen.exe is a separate application and does not run from afstrade.exe.  Therefore, the user who will be running the NSCCGen application will need access to it, including access for file creation in the OUTPUT_DIR and ARCHIVE_DIR directories.


An [NSCC] section is needed in the afstrade.ini file in order to run the NSCCGen application.  Set the appropriate values for your system.

[NSCC]
; OUTPUT_DIR is the directory in which the NSCC files are created.
;
These files are REPLACED every time NSCCGen is run.
OUTPUT_DIR=c:\temp\nsccOutPut
; ARCHIVE_DIR is the directory in which copies of the
; NSCC files are placed after the user verifies that the 
; files were successfully transmitted to the NSCC.
ARCHIVE_DIR=c:\temp\nsccArchive
; submitter
ORIGINATOR=1234
; submitted for broker
SUB_ORIGINATOR=1234
; major executing participant
MAJOR_EXEC_PART=ABCD
; 0 = process today's trades only
; 1 = process previous trades in addition to today's trades
PROCESS_PREVIOUS_TRADES=1
; File Type: T=Test, P=Production
FILE_TYPE=P


For more information, see Fixed Income Transaction System or NSCC.

Last Updated January 23, 2004.