PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Join the forum, it's quick and easy

PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

DISPLAY WINDOW message without DSPF

Go down

DISPLAY WINDOW message without DSPF  Empty DISPLAY WINDOW message without DSPF

Post  maran Mon Dec 12, 2011 8:53 pm

We can display message in window using API QUILNGTX

HDftActGrp(*NO) ActGrp('UTILITY')

DShowText PR
D Text 8192 Const Varying
D MessageId 7 Const
D MessageFile 21 Const

/Free
ShowText('This is an API test. The amount of text that can +
be displayed is nothing short of incredible. The quick +
brown fox jumped over the lazy dog. With an API like this +
available, we shouldn''t need to use the DSPLY opcode any +
longer. It reduces the need for coding DDS WINDOW formats +
and will make life a bed of roses. It even does an +
automatic word wrap. What will they think of next? 123456+
789012345678901234567890123456789012345678901234597890':
'SQL0101':'QSQLMSG');
*InLR=*On;
/End-Free

PShowText B Export
DShowText PI
D Text 8192 Const Varying
D MessageId 7 Const
D MessageFile 21 Const

DErrCode DS
D BytesIn 10I 0 INZ(0)
D BytesOut 10I 0 INZ(0)

DQUILNGTX PR EXTPGM('QUILNGTX')
D MsgText 8192 Const
D MsgLength 10I 0 Const
D MessageId 7 Const
D MessageFile 21 Const
D dsErrCode Like(ErrCode)

/Free
QUILNGTX(Text:%Len(Text):
MessageId:MessageFile:
ErrCode);
/End-Free
PShowText E
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum