[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

2826.0. "DATA_FILE Move - OA-I-AIMPUT" by MISFIT::KINNEYD (A fool's paradise is a wise mans hell) Tue Jun 08 1993 12:53

    I'm having a problem getting my script to work using the Data_file
    calls, and was wondering if anyone can spot my mistake. I've been
    looking at it too long, if you know what I mean! When I execute the
    following script I get the error OA-I-AIMPUT Error writing outfile
    for every record that meets the criteria inthe IF statement. Any help
    would be greatly appreciated.
    
    DATA_FILE OPEN/READ/WRITE INFILE  HD_ENTRY
    DATA_FILE OPEN/WRITE      OUTFILE HD_ARCHIVE_ENTRY
    
    FOR HD_ENTRY WITH .STATUS EQS "CLOSED" DO -
       GET #KEY = .LOGNUM\\ -
       DATE_CONVERT #NBS_LOGDATE,.LOGDATE,7\\ -
        .IF #NBS_LOGDATE:8 LT #NBS_ARCH_DATE:8 THEN -
          DATA_FILE GET INFILE #KEY\\\\ -
          DATA_FILE MOVE INFILE OUTFILE #KEY
    
    .EXIT
    
    DATA_FILE CLOSE INFILE
    DATA_FILE CLOSE OUTFILE
    
    
    Dave Kinney
    
    
T.RTitleUserPersonal
Name
DateLines
2826.1Not much help I'm afraidIOSG::SHOVEDave Shove -- REO2-G/M6Tue Jun 08 1993 16:137
    I'm afraid that that error is returned for any failure in the dataset
    write (specifically, bad status returned from the OA$DB_PUT routine).
    
    Can you write to HD_ARCHIVE_ENTRY by hand (WRITE ADD ..., or even
    directly as an Entry form)? 
    
    Dave.