|
There are no keywords in the DDS that specify *AFPDS to my knowledge. What I do for those instances of special printer files is to create a CL program that actually creates the file. I have some printer files that are compiled with overlays and things. So I create a CLP to copy the overlay, create it, and create the printer file. Another option is to create a PDM option to create your file, then specify that in your member text so anyone creating it will use that. Thanks, Mark Mark D. Walter Senior Programmer/Analyst CCX, Inc. mwalter@xxxxxxxxxx http://www.ccxinc.com Jimmy Ballard <JBallard@aepetsc he.com> To Sent by: "'rpg400-l@xxxxxxxxxxxx'" rpg400-l-bounces@ <rpg400-l@xxxxxxxxxxxx> midrange.com cc Subject 11/19/2004 02:07 devtype(*AFPDS) and varying length PM barcodes Please respond to RPG programming on the AS400 / iSeries <rpg400-l@midrang e.com> Hello all, I have two questions: 1) We have a few printer files that must be compiled with DEVTYPE(*AFPDS) - since they print bar codes. I am hoping that one of you smarter folks knows of an "H Spec" of sorts for a printer file - where I can specify this option somewhere in the source. (So that I do not have to rely upon a comment in the TEXT or in the source to remind me to compile these specific printer files with this specific option.) Does anyone know of a way to specify this particular option in the source so that it always compiles with this option? 2) Speaking of barcodes - I would like to print a varying length field out as a barcode. If the field is only 5 chars long - I don't want a barcode that has the 5 characters and then 45 blanks - I would like the barcode to only be 5 chars long. In an attempt to define the field as varying in the printer file I created a reference file that has this field defined as VARLEN - and specified REFFILE in the printer file. (however, the compile listing for the printer file showed the length as the max length - 40) Then, when I compile the RPG program it fails because it doesn't like that the printer file sees the field as 40 long when the pgm sees it as varying length (42 long). I have since created a Frankenstein DS in the RPG to accomplish my feat - but there has to be a cleaner & easier way...Does anyone know of a way to use a varying length field to print a varying length barcode? Thanks tons... -Jimmy -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.