Difference between revisions of "Qshell - Utilities"

From MidrangeWiki
Jump to: navigation, search
(Created page with '==Background== A large number of utilities exist under Qshell which will make your live considerably easier. This write-up will help to highlight some of the hidden gems that ex...')
 
Line 9: Line 9:
  
  
===RFile Example - Alternative to CPYTOIMPF===
+
====RFile Example - Alternative to CPYTOIMPF====
 
If you have a plaintext file with a single field, that you want to copy to the IFS, the following will be easy to use:
 
If you have a plaintext file with a single field, that you want to copy to the IFS, the following will be easy to use:
  

Revision as of 19:26, 30 July 2009

Background

A large number of utilities exist under Qshell which will make your live considerably easier. This write-up will help to highlight some of the hidden gems that exist under QShell.


Read or write record files - rfile

This Qshell utility reads record (database and device) files, and displays it to standard output, or reads information from standard input, and write the data to record files. See this link for the IBM explanation.


RFile Example - Alternative to CPYTOIMPF

If you have a plaintext file with a single field, that you want to copy to the IFS, the following will be easy to use:

rfile -rlQ LIBNAME/FILENAME > /tmp/filename.txt

This will not work correctly when displaying data for fields which has numeric or date values.