IBM Support

Information on File I/O Component present in Sterling Service Definition Framework (SDF)?

Question & Answer


Question

Information on File I/O Component present in Sterling Service Definition Framework (SDF)?

Answer

1. How does the File I/O Component in SDF generate the file name?
 
Currently, the file generated by the Sterling (erstwhile Yantra) SDF bears the following appearance:
"PREFIX.1158667724365.SUFFIX" based on the service configuration.
If one configures the PREFIX in the service configuration as "PRE" and SUFFIX in the service configuration as "SUF", the file name generated will look like PRE1164717111716SUF
 
2. What is the system generated 13 digits in Text Translator output file name between the PREFIX and the SUFFIX? Is the generated number - a sequence number, a random number or based on some other logic?
 
The 13 digits added by the system between prefix and suffix in files name is system current time in Milliseconds. Sterling hard codes this value for Text translator output files. Sterling uses system.currentTimeMillis() method in java to generate the file name which follows its own logic. Following is the link for further reference: http://www.devx.com/Java/Article/28685#codeitemarea

Sample Code:-
import java.io.*;
import java.util.*;
 
public class TimeDemo {
    public static void main(String[] args) {
        try {
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            System.out.println(System.currentTimeMillis());
            br.readLine();
            System.out.println(System.currentTimeMillis());
        }
        catch (Exception e) {
            System.out.println(e);
        }
    }
}

3. Is it possible to change the file name dynamically? Is there a way in which we can control the length or the contents of the file name?
 
As of Sterling 8.0, it is not possible to change the name of the generated file name. It is also not possible to customize the name generation.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

FAQ2781

Document Information

Modified date:
16 June 2018

UID

swg21520148