Cannot get ENUSSUTL to work with long Element
search cancel

Cannot get ENUSSUTL to work with long Element

book

Article ID: 100346

calendar_today

Updated On:

Products

Endevor Endevor Natural Integration Endevor - ECLIPSE Plugin Endevor - Enterprise Workbench

Issue/Introduction

I am trying to use ENUSSUTL to copy some files from one directory to another with new file names. My Processor looks like this:
//GUSSNEW  PROC PFX=PUBLIC.I7227.R@SYMB,  USER PREFIX SITE SYM       
//        WRKUNIT=SYSDA,                                       
//       NSOURCE='/u/endevor/Ixxxx/stg1/source/', 
//        ADDPRE='ADDED.PREFIX.'                              

//ENUSS1 EXEC PGM=ENUSSUTL                         
//INPUT  DD PATH=&#BASLIB1,                        
//         PATHOPTS=(ORDONLY)                                          
//OUTPUT   DD PATH=&NSOURCE,                       
//          PATHMODE=(SIRWXU,SIRWXG,SIRWXO)      
//ENUSSIN DD *                                     
COPY INDD  INPUT OUTDD  OUTPUT                     
.                                                  
S FILE  '&C1ELMNT255'                              
NEWFILE '&ADDPRE&C1ELMNT255'                       
.                                                  
 
and get a message like this:
BSTPPARS: E004 INVALID COMMAND WORDING, FOUND: 'A1234567890123456789012345678901 
ENUSSUTL: E001 INVALID COMMAND SYNTAX RECEIVED.                                       

Environment

Endevor any support version
 

Cause

The value of the variable &C1ELMNT255' is longer than the line. No automatic continuation is done. So if &C1ELMNT255' is longer than 72 characters the utility will fail.

Resolution

Set C1WRAP=Y in the PROC. For example:

//GUSSNEW  PROC PFX=PUBLIC.I7227.R@SYMB,  USER PREFIX SITE SYM       
//       WRKUNIT=SYSDA,                                       
//       NSOURCE='/u/endevor/Ixxxx/stg1/source/', 
//       ADDPRE='ADDED.PREFIX.' ,
//       C1WRAP=Y

This will automatically cause the parm to wrap(generate a continuation).

 

Additional Information

 Long name higher than 72 characters, must be split to have the 72th char as a blank. 
'A1234567890123456789012345678901234567890123456789012345678901234567890 
123456789012345678901234567890' 

If long names contain spaces it would be better to split into multiple "comma concatenated" strings.