MC Press Online Forum
Welcome, Guest
Please Login or Register.    Lost Password?
STRQSH command (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: STRQSH command
#93693
foxj@mscdirect.com (User)
Junior Boarder
Posts: 39
graphgraph
User Offline Click here to see the profile of this user
STRQSH command 1 Year, 7 Months ago Karma: 0  
I believe that you need to separate multiple commands with a semicolon. Could this be the cause of the problem? <p>My suggestion is that you should debug the program and view the contents of the variable before you try to execute it using strqsh. Copy that to the clipboard and from the command line of a different AS/400 session, enter the strqsh command without any commands to execute, this will bring up the qsh interpreter. Then paste the contents of your variable onto the command line and press enter. If there is something wrong with the command, this should help you figure out what it is. <p>As far as getting the data into a member, I believe that the syntax for the path name that you use to get to the member should be /qsys.lib/datalib.lib/file1.file/member1.mbr. Assuming that everything in your command is working properly, you should ditch the override and use this syntax.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#93694
Guest.Visitor (Visitor)

Birthdate:
STRQSH command 1 Year, 7 Months ago  
Looks good to me, but lose the override. The && means only run the 'ls' if the 'cd' worked. <p>Do the file and member already exist? They need to. <br>
How did you create the PF? With CRTPF RCDLEN(500) ? <br>
Does this file have one big character field in it? (see above question)<br>
Does the program work if you specify the first member name? <br>
Has the program ever worked successfully? <br>
What is the value of &PATH? Do are your slashes forward / instead of backward ? <p>I like to code 'ls -1' so I only get one file per record. <p>Chris
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#93692
TPrice (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
STRQSH command 1 Year, 7 Months ago Karma: 0  
I have a question concerning the STRQSH command. I am issuing the following command and cannot get it to work with a multi member file to hold the output. <p>Can you use a multi member file to receive the listing as I am doing here or does it have to be the *FIRST member? <p><!--mccodelink_begin--> <BR>
<!-- do not remove --> <BR>
<hr width=50 align=left><small><a href='http://www.mcpressonline.com/mc/showcode@@.6b4f3a1b' target='_blank'>Code</a></small> <BR>
<!--mccodelink_end-->
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
   MC-STORE.COM