[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2818.0. "APPEND function problem in V3.0" by AIMTEC::PERREAULT_K () Mon Jun 07 1993 19:49

	
    	
        ALL-IN-1 V3.0 APPEND Function Problem
        
        There is a problem with the APPEND function when the destination 
        file has a .PS extension.
        
        If we do the following:
        
                <APPEND TEST.TXT TEST.PS
        
        (Fyi - customer is appending filename.ps to filename1.ps)
        
        we get the following error
        
        %OA-E-NOAPPEND, Problem with APPEND function - file "TEST.PS"  
        
        (GOLD W does not show any more information)
        
        
        If the APPEND function's destination file extension has a .wpl or 
        .txt or even .p there is no error.
        
        Our customer had V2.3 and this worked fine. After upgrading to V3.0 
        it didn't work.
        
        I tested it on an ALL-IN-1 V2.4 system and received the same error.
        I tested it on an ALL-IN-1 V2.3 system and it worked without any 
        error.
        
        Does anyone know what the problem might be?
        Any ideas?
        
        Thanks,
        Kathy
            
T.RTitleUserPersonal
Name
DateLines
2818.1New text datasetIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Mon Jun 07 1993 22:3153
The problem has occurred because the text dataset mechanism in ALL-IN-1
V2.4 and V3.0 recognises more file types.

V2.3 did not have a PostScript text dataset so a file type of .PS, like all 
unrecognised file types, caused the text dataset mechanism to default to 
ASCII.

A PostScript text dataset was added to V2.4, so files with a file type of
.PS are processed by that new dataset.  The PostScript text dataset does
not support record mode operations because PostScript is a final-form
format which cannot be converted to and from the revisable formats
supported by the text dataset mechanism. 


There are two ways around the problem:

1.  Change the append function to:

	APPEND 'TEST.TXT' 'TEST.PS' TXT$DSAB_ASCII TXT$DSAB_ASCII 

    This overides the normal selection of the text dataset from the file 
    types and forces the input and output to be performed using the ASCII
    text dataset. 


2.  Change the append function to:

    	APPEND/FILE 'TEST.TXT' 'TEST.PS'


    /FILE is a new qualifier in V3.0 which tells APPEND to perform the 
    operation directly on the RMS files.  It does not use the text dataset
    mechanism so will be more efficient that method 1.



>        If the APPEND function's destination file extension has a .wpl or 
>        .txt or even .p there is no error.

There wasn't an error but if you look at the output file it will not 
contain the PostScript but instead contain the line:

    PostScript document type cannot be displayed.


This is because the PostScript text dataset does not support record mode
oeprations.  If you try to do a record mode READ the message above will be
placed into the output stream (similar to the FOREIGN text dataset).  If
you try to do a record mode WRITE you get an error because the dataset does
not support such operations. 


Richard
2818.2Thank youAIMTEC::PERREAULT_KTue Jun 15 1993 15:263
    Thank you for this information . I will relay it to my customer.
    
    Kathy