Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gracy
  • Order by date
  1. gracy

    Data Transfer AS400/Excel

    If you create the file with sql you can use the for column feature. In the example below when the file is brought into excel the column heading is Finish_Wgt but in rpg programs I use the field zfwgt. create table mylib/myfile Finish_Wgt for column zfwgt dec (5,0) not null with default
  2. gracy

    cannot get startup to work

    Sometime between yesterday & today our startup options were changed so that there is no application title displayed, no display form & the display database window box has been checked. If I change these settings to what they should be they just go back to what they were. As far as I know no one...
  3. gracy

    Run A Program With A Display File In Batch

    We use a switch on the display file. grace
  4. gracy

    Okay... I am curious

    I belong to the rpg mailing list at midrange.com, I used to belong to the midrange list, but there was too much activity for me to have to sort through all of those emails. I do go to the archives for midrange when looking for answers there are very knowledgeable people there. grace
  5. gracy

    How do I make copy of file (report) in outq

    You could do a save(*yes).
  6. gracy

    add a new user on the as400

    The command on the 400 is crtusrprf, F4 to prompt. grace
  7. gracy

    KEY FIELDS AND CHAIN QUESTION

    Yes, use a klist with the 2 variables as your kflds.
  8. gracy

    Display File Field Error?

    Packed fields are not even an option for screen fields are they? If you prompt on an 'a' spec & then hit f1 on data type P is not a valid type.
  9. gracy

    Check for empty file before running an RPG program

    RTVMBRD FILE(Library/File) NBRCURRCD(&RECS) grace
  10. gracy

    Printing to a Specific Drawer from AS400

    There is a drawer keyword in the ovrprtf command OVRPRTF FILE(REPORT) TOFILE(P9) DEV(P9) PAGESIZE(66 + 132) LPI(6) CPI(10) OVRFLW(60) DRAWER(1) + OUTQ(P9) FORMTYPE(P9) COPIES(1) HOLD(*YES) grace
  11. gracy

    AS400 folders

    1st If you have the authority you should be able to map a network drive in explorer. \\servername\foldername 2nd When you go into operations navigator to open file systems are you going in as qsecofr? grace
  12. gracy

    code for enterkeywords

    You can capture if the enter key was pressed in the information data structure. FSCREENFM CF E WORKSTN F INFDS(INFDS) D INFDS DS D KEYUSE 369 369 C KEYUSE IFEQ...
  13. gracy

    Enter key

    Sorry I posted the rpgiv example. This can also be done in rpg/400 using the ispecs. FCAR612FMCF E WORKSTN F KINFDS INFO IINFO DS I...
  14. gracy

    Enter key

    D INFDS DS D KEYUSE 369 369 C KEYUSE IFEQ '1'
  15. gracy

    AS400 CLP,, parameters and lda

    CALL PGM(LABDATE) PARM(&RFDAT &TFDAT) Is this program actually filling these dates? Was that a picture of your lda? Is that data in the lda correct? Your cl program says to pick up the dates in 1-6 & 7-12. Also what about the date that says 096001? I know there are a lot of questions...
  16. gracy

    AS400 CLP,, parameters and lda

    opnqryf is notorious for its adding of extra ticks '''' Lets try this again, your qryslt statement should be ('GLOBJ *EQ "6323 " *AND GLDGJ *EQ %RANGE(' *cat &RFDAT + *cat ' ' *cat &TFDAT *cat ')') note: there needs to be a space before and after each cat & also a space between...
  17. gracy

    AS400 CLP,, parameters and lda

    Try this %range(' *cat &rfdat *cat ' ' *cat &tfdat *cat ') grace
  18. gracy

    AS400 CLP,, parameters and lda

    What is your opnqryf question?
  19. gracy

    API that returns PF name for LF

    try - DSPFD FILE(MYLIB/MYLGCL) TYPE(*MBR) OUTPUT(*OUTFILE)+ FILEATR(*LF) OUTFILE(QTEMP/FDTEMP) the field name in outfile that has the based on physical file name is MBBOF grace
  20. gracy

    RPG ILE TO FREE-FORMAT PROGRMMING

    If you are using CODE/400 this is an option. Actions/Convert selection to C Free-Form Actions/Convert all to C Free-Form Grace

Part and Inventory Search

Back
Top