How to write a disk file in PIOE/VDE

print

Syntax:
[DISK_name] DISK "file_ID" WRITE "data_name";
 
[DISK_name]
The function name. DISK is constant and NAME can be any alphanumeric value the user requires. We recommend you use the naming conventions previously described. The square brackets are mandatory
 
DISK
Mandatory. The P/I Output Enhancement command being used.
 
"file_ID"
Optional. An ID used to identify the file. If this is omitted, the operations are performed on the default file. This can be a numeric or alphanumeric value, a parameter that evaluates to a numeric or alphanumeric value or a variable containing a numeric or alphanumeric value. Quotes (“”) should only be used with an alphanumeric value.
 
WRITE
Mandatory. The P/I Output Enhancement sub‐command being used
 
"data_name"
The name of the data to be exported. This can be an alphanumeric value, a parameter that evaluates to an alphanumeric value or a variable containing an alphanumeric value.
 
;
Mandatory. Terminates the command.

Example:


[OBJECT_FILE] OBJECT
CONDITION
    TEST
        NEWPARENT  //WRITE INFORMATION FOR EACH DOCUMENT
    ACTION      
         [FORMAT_DISK_FILE_INFORMATION]
        AND [FORMAT_FILE_NAME]       
        AND [DISK_FILEEXTENSION]
        AND [DISK_FILE_DIRECTORYNAME]
        AND [DISK_FILENAME]
        AND [DISK_WRITE_FILE_INFORMATION]
      
      

 
 //FILE EXTENSION
[DISK_FILEEXTENSION] DISK "FILE" FILEEXTENSION ".txt";

//FILE DIORECTORY (WHERE THE FILE IS STORED)
[DISK_FILE_DIRECTORYNAME] DISK "FILE" DIRECTORYNAME [VARIABLE_DISK_FILE_DIRECTORY];

//FILE NAME
[DISK_FILENAME] DISK “FILE" FILENAME [VARIABLE_DISK_FILENAME];
 
//WRITES THE DISK FILE
[DISK_WRITE_FILE_INFORMATION] DISK “FILE" WRITE [VARIABLE_DISK_FILE_INFORMATIO];


//NAME OF THE FILE
[FORMAT_FILE_NAME]  FORMAT [VARIABLE_DISK_FILENAME] FROM "5.5d_%s_%s"
VIPJOBNUMBER AND                  //VIP JOB NAME
[VARIABLE_TIMESTAMP] AND    //TIMESTAMP
[VARIABLE_ANYNAME]                //NAME OF THE FILE
 
;

//INFORMATION POPULATED TO THE DISK FILE
[FORMAT_DISK_FILE_INFORMATION]  FORMAT [VARIABLE_DISK_FILE_INFORMATIO] FROM "%s_%%s_%s_%5.5d"
[VARIABLE_TIMESTAMP] AND    //TIMESTAMP
HOSTJOBNAME AND                   //HOSTJOBNAME (INPUT DATA NAME)
[VARIABLE_DOC_ID]                    //MAILPIECE ID
VIPJOBNUMBER                           //VIP JOB NAME
;
 

 

 

 

UPDATED: April 19, 2017

Contact Us