Guild Companies, Inc.  
 
Midrange Guru - Tech Tips
OS/400 Edition
Volume 2, Number 22 - March 22, 2002

Wanted: Qshell Output in ASCII

Hey, Ted:

Since the Qshell is an AS/400 utility, the output of its commands is EBCDIC. If it were in ASCII, I could direct the output of grep, find, and other Qshell commands to text files in the Integrated File System (IFS), then open them in Notepad on my PC by double-clicking. Is there an EBCDIC-to-ASCII converter in Qshell?

-- Jim

You don't need one, Jim. If you make a Qshell utility create a file, it will create an EBCDIC file, as you note. On the Netshare/400 system that I use, files are created with codepage 37.

The solution to your problem is to create the files in advance with the proper codepage.

Use the touch command in Qshell with the -C option. Here's an example:

touch -C 819 out3 
ls -l >out3     

The touch command creates file out3 in the current directory of the OS/400 IFS. The list directory contents (ls) command loads file out3 with data. Codepage 819 will work fine on your PC.

-- Ted

Sponsored By
BUSINESS COMPUTER DESIGN INT'L

See why WebSmart beat out 26 other vendors and was
Voted the BEST iSeries -- AS/400
e-Business / e-Commerce tool in the marketplace.

Free Download of the New Version. Build your own, or use / customize the 70+ Free templates and e-Commerce applications. Develop professional state-of-the-art applications in a day not months, all while using your existing skill set. Extend legacy applications.

Forget complex, expensive products that take months and months to learn, or bare bone products with minimal tools & features that make you do the work manually without HTML editing, restrict the look of your web apps, and restrict growth. Restrictions like no IFS, email or Graphics functions, session ids, persistent CGI handling and more.

WebSmart is a proven, state-of-the-art tool that is easy-to-use, requires little or no Web or iSeries400 programming, is packed with features to automate the work for you, and best of all it’s affordably priced.

Quickly deploy elegant, robust and secure B2B, B2C and browser based apps. Including: Inquiries, reporting, maintenance, wireless (XML, WML. . . ), ordering, product catalogs, shopping carts, EIS. . . .

State-of-the-art, portable PC-based design tool. Develop anywhere: Work, on the road & home and enjoy the freedom of choice.

Simply email objects to yourself or others. Unlimited end-users and unlimited developer seats. Automatically produces dynamic HTML CGI programs written in ILE/RPG. 128 bit AES encryption. Utilizes iSeries400 database and security features for scalability and reliability.

Ask for BCD’s 15-point opinion e-mail on why WebSmart is better than WebSphere TM, 1. Ability to run on smaller iSeries -- AS/400’s without having to upgrade hardware. 2. Significantly faster apps. . . .

WebSmart users include: Affinity Ins., Airways Freight, Arrow Environmental, Behr Process, Broward County Schools, Calvin Klein, D.J. Powers, Formica Corp., Goodyear, Hoshizaki America, Kauai Electric, Legacy Partners, Midwest Trophy, MSU, Oregon Dept., of Veterans Affairs, State of California, Testor Corp., Weigh-Tronix. . .

Also try CATAPULT, voted best e-mail / Automated Report Distribution Tool. FREE Downloads: WebSmart or CATAPULT

Visit http://www.BCDsoftware.com or call 630-986-0800, e-mail sales@bcdsoftware.com Trust BCD, Winner of 18 Industry Awards 20,000+ product installations - 9,000 World-wide customers.

THIS ISSUE
SPONSORED BY:
COMMON
Business Computer Design, Int'l
BACK ISSUES
TABLE OF CONTENTS
Client Access Transfers Linefeed-Terminated Data
Wanted: Qshell Output in ASCII
Reader Feedback and Insights: You Don't Have to Roll Your Own
  Newsletters | Subscribe | Advertise | About Us | Contact | Search | Home  
  Last Updated: 3/22/02
Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.