Australian Bureau of Statistics

Rate the ABS website
ABS Home > Statistics > By Catalogue Number
ABS @ Facebook ABS @ Twitter ABS RSS ABS Email notification service
1406.0.55.002 - User Manual: ABS Remote Access Data Laboratory (RADL), Mar 2006  
Latest ISSUE Released at 11:30 AM (CANBERRA TIME) 22/02/2012  Reissue
   Page tools: Print Print Page Print all pages in this productPrint All RSS Feed RSS Bookmark and Share Search this Product  
Contents >> File management >> File management command code

FILE MANAGEMENT COMMAND CODE

The File management facility within the RADL supports three simple commands, and also allows a user to include comments or blank lines in their File Management code. Click on the Enter Code... button to enter your File Management commands. Each File Management command is entered as text and must be entered with one command per line. The functions available are:

Directory Listing: to obtain a listing of all RADL files, users must use the dir (directory or list) command. This command has no parameters, i.e. enter the command name by itself. Users will receive a directory listing in their job output.

dir

Deletion of Files: to delete any RADL files, users must use the del (delete) command. The del command is followed by one or more specifications of files to delete. Each specification may be an explicit file name or may contain wildcards as for DOS (e.g. *).

del oldstuff.txt (This deletes the file called oldstuff.txt)
del *.tmp (This deletes all files ending in .tmp)
del other.* (This deletes all files called 'other' irrespective of their file type)

Renaming Files: should users wish to rename any of their saved datasets, they must use the ren (rename) command. The ren command is followed by the current name of the file and then the new name the user wishes to assign to it. Special characters may not be used.

ren myjob.txt keepit.txt (This renames a file from 'myjob.txt' to 'keepit.txt')

Adding comments: users may include comments into their code with the other File Management commands (dir, del or ren) when submitting File Management jobs. Blank lines may also be used to make the code more readable. Comments in the File Management facility, like other commands, must be entered as single-line statements. To put include a comment in the File Management job, start the comment line with either comment, rem (remark) or * followed by a space.

comment Deleting old files (This includes a comment 'Deleting old files' within a file management job)
rem Checking my files (This includes a comment 'Checking my files' within a file management job)
* Updating file names (This includes a comment 'Updating file names' within a file management job)

Previous PageNext Page


Bookmark and Share. Opens in a new window


Commonwealth of Australia 2014

Unless otherwise noted, content on this website is licensed under a Creative Commons Attribution 2.5 Australia Licence together with any terms, conditions and exclusions as set out in the website Copyright notice. For permission to do anything beyond the scope of this licence and copyright terms contact us.