× 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.



Hi,

The field occupies two bytes, and RPG initialises this to all blanks since
it is part of a DS.  Hex 4040 becomes 16448 as integer.

Kind regards,
Paul

-----Original Message-----
From: nan pat [mailto:seedrp@hotmail.com]
Sent: 12 March, 2002 12:10
To: RPG400-L@midrange.com
Subject: Line count from INFDS of Printer file


[ Converted text/html to text/plain ]

All

I had following code in my  Report pgm

 FTAXREPP1  O    E             PRINTER INFds(w1pr01)
 F                                                            usropn
  *  File Information Data Structure for PRTF
 D W1PR01          DS
 D  W1SPNO               123    124 i 0
 D  W1LNCT               367    368 i 0
 D  W1NOPG               369    372 i 0

The INFDS returns  correct  line count value , however , at the start the
pgm
, the system intialises the Line count field W1lnct = 16448 .

Cd anyone throw light on  why it is initialised to 16448  .

Cheers

Daj

----------------------------------------------------------------------------
--
Join the world's largest e-mail service with MSN Hotmail. Click Here[1]

===References:===
  1. http://g.msn.com/1HM103401/11

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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 thread ...


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.