× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



=====================
===>: "This code will only work if your current directory is /."
I have to say that this command worked like this.  The variable I use is 
&PATH (equals to the full object path name), which is...

 /TEST/2006_08_04_pay[1].20060804.013057.txt 

... and use this command (as a work-around solution) like this:

CPYFRMSTMF FROMSTMF(&PATH) + 
           TOMBR('QSYS.LIB/QTEMP.LIB/TEMPFILE.FILE/TEM+
           PFILE.MBR') MBROPT(*REPLACE) 

This is working.  You are correct when you say I was requesting to pull 
just "one" record at the beginning but I also explained what my ultimate 
goal was to know what file I was reading so I can do specific steps, 
depending on that fact.  This is a work-around solution and this is the 
type of ideas I was looking for.

=====================
===>"PLEASE DON'T BE A FOOL, it only takes a second to fix the problem, 
why do iSeries people INSIST on doing this wrong?"

Sometimes, when we discuss topics on email, is a little difficult to get 
to a point that we all can talk the same language.  Probably my intellect 
and experience level is not as high as you have and I may have missed your 
guidance in some concepts.  For example, I was never exposed to the QSHELL 
solution until yesterday.  Probably I am alone in this ship but maybe 
there are more in the room that want to learn but do not have that level 
of knowledge yet.  It is definitively true that we will get there.  Is a 
matter of time and I can deal with it.  In the mean time, I will keep on 
living under the motto: "the dumber question is the one I do not ask."

=====================
===> "This is the correct syntax: 
TOMBR('/qsys.lib/qtemp.lib/temporary.file/temporary.mbr')"
Even though I did not write the '/' symbol before the QSYS.LIB parameter, 
somehow the system did the right interpretation and worked correctly. This 
is a screen shot of the message written in the joblog:

Message ID . . . . . . :   CPCA081       Severity . . . . . . . :   00  
Message type . . . . . :   Completion  
Date sent  . . . . . . :   08/17/06      Time sent  . . . . . . : 14:13:00 
 
  
Message . . . . :   Stream file copied to object.  
Cause . . . . . :   Stream file 
/TEST/2006_08_04_pay[1].20060804.013057.txt 
  was successfully copied to object  
  /QSYS.LIB/QTEMP.LIB/TEMPFILE.FILE/TEMPFILE.MBR in CCSID (Coded Character 
Set
  Identifier) 37.  



Peter Vidal 
PALL Corporation / SR Programmer Analyst, IT Development Group
10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111
http://www.pall.com

"If it's worth doing, it's worth doing right."- Anonymous

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.