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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2826.1 | Not much help I'm afraid | IOSG::SHOVE | Dave Shove -- REO2-G/M6 | Tue Jun 08 1993 16:13 | 7 |
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. |