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 strongm 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: jmanj
  • Order by date
  1. jmanj

    How do I setup and write to multple QSYSPRTs in single old RPGIII pgm?

    As a programmer I'm always challenged to know what the best method out there. It would be a disservice if I cannot at least give a try to prove that I can do it. Sure time for me is never an excuse. I used to labor night and days just to understand what's out there. When certain challenges comes...
  2. jmanj

    How do I setup and write to multple QSYSPRTs in single old RPGIII pgm?

    Could not understand what you tried to accomplished. There are so many ways you can skin a cat(pardon me). If you are trying to print 8 copies of the same invoice but with different vendor, then why not put the printing routine as a subroutine. This way you can call the subroutine x number of...
  3. jmanj

    How do I setup and write to multple QSYSPRTs in single old RPGIII pgm?

    Are you trying to create 8 copies or printing 8 different reports. Both ways are doable. For 8 copies you can override printer attribute in CL to have any number of copies. For reports you will need to output into different print devices and still override each device attributes in a CL.
  4. jmanj

    Time in Miliseconds

    In the old days I used to create DATETIME routines which get the differences between two dates(for aging-trial balances), get days of the week or months, etc. The routines are basically used for cobol machines that does not have intrinsic functions like Tandem. It's just a simple trick of...
  5. jmanj

    Type tree reading

    Looks like your file is one whole continuous record. One possible way is to UNSTRING your file delimited by "MD" and this will create a sequential file that you can use for your tree. Or is there a way that you could use "MD" as your terminator?
  6. jmanj

    Tax Updates - using incorrect version

    I used to be a member of PeopleSoft-fans at groups.yahoo.com. This is the biggest PS forums I have been into. I just don't know if it still active.
  7. jmanj

    Trying to START logical file but READ NEXT goes to beginning of file

    You may also look at the source of your logical file. There could have been a hard coded value in your key when it was compiled. Sorry but I have not been doing programming with AS400 since 2007. This is the first place I would look.
  8. jmanj

    Trying to START logical file but READ NEXT goes to beginning of file

    Usually you set a criteria for a key, START once and loop to READ NEXT until end of file. If you can post that part where you set the KEY, the START routine and the routine for the READing of records.
  9. jmanj

    Trying to START logical file but READ NEXT goes to beginning of file

    Cant you post the START statement and the initial value of your key? Also include the block where it READs the record.
  10. jmanj

    PCL/Macro help please

    If your file is purely with PCL control characters check with SwiftView. They have pretty good applications that converts PCL files into printable objects. They have a lot of converter programs that you can use. If you are trying to create checks, forms complete with graphics then I would...
  11. jmanj

    NetCobol 7.3.2: How to specify printer format for ReportWriter report

    I used SQR language (long time ago) to print forms, checks,micr etc using PCL and or postcript. PCL 6 should handle all lower version. You have to be familiar with the many PCL commands in order to accomplish this. Any laserjet/Epson printer is able to interpret PCL/Postcripts commands. You can...
  12. jmanj

    Need to Begin_Date and End_Date columns to an EFFDT table.

    It is hard to give assistance when you don't give enough information to work with. You have not responded to a simple questions to clarify your purpose, I can only assume you have no idea what PeopleSoft is all about. Here's some tips that you can ponder: 1. For reports or query you use either...
  13. jmanj

    Calculating age

    Kahush, You are trying to compare age vs year. It should be something this: If (CURRENT DATE) - (BIRTHDATE >= 65
  14. jmanj

    When best to use: Copybooks, Modules, Service Programs

    The bad old days??? Today's RPG goes to it's roots in the bad old days.... I have taught RPG (in IBM) since the beginning of S/3 to S/34, S/36 & AS400 but never been the bad old days. Language evolved even with the primitive man and they behold how they went forward. When you write single step...
  15. jmanj

    String numeric value into pipe delimited without leading zeros?

    Sorry my finger is fast.. RESULT PIC 9(10).99 << 13 Char MOVE ZEROES TO I1. MOVE ZEROES TO I2. PERFORM VARYING I1 FROM 1 BY 1 UNTIL (I1 >= 13) OR (I2 = 999) IF (RESULT(I1:1) >= 1) AND (RESULT(I1:1) <= 9) OR (RESULT(I1:1) =...
  16. jmanj

    String numeric value into pipe delimited without leading zeros?

    A better method is to search for the occurrence of blanks in a numeric variable. This way you only need one working storage. This also eliminates leading zeroes. 01 RESULT PIC 9(10)V99 VALUE ZEROES. ..RESULT above has 12 digits so in your logic do this MOVE ZEROES TO I1. MOVE...
  17. jmanj

    String numeric value into pipe delimited without leading zeros?

    Pic zzz99.99 is still treated as character and you will get the blank fill if you use it in a string statements. Here's what I usually do to eliminate blanks: Create several numeric working storage ranging from 1 to n number of digits depending on the maximum length of your variables. i.e...
  18. jmanj

    Ansi Standard X12 design concept Question

    We used to have Mercator do the talking with EDI until we found out it is costing us a lot of money because not all clients or vendors are using the same ANSI standard(version). There is no single bullet for EDI. Your recourse is to create a separate tree/map for an exceptional clients. Since...
  19. jmanj

    Signed data in Line sequential file

    If you have a signed numeric you have to tell the compiler where the location of the sign character. If the sign is after the numeric value then use: example below. 02 BAM PIC S9(12)V99 SIGN IS TRAILING VALUE ZEROES. If before the numeric value I believe you will use SIGN IS HEADING.
  20. jmanj

    Need instructions on how to read a file using Alternate Key

    I usually do after START: READ FILE4 NEXT RECORD AT END GO TO XXX-END IF FILE-STAT = "00" OR "02" OR "04" NEXT SENTENCE ELSE MOVE "X" TO ERR-FLAG GO TO XXX-END.

Part and Inventory Search

Back
Top