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!

Barcode function keys on AS400

Status
Not open for further replies.

vecam

Programmer
Aug 26, 2003
7
0
0
US
How do you set up a barcode (code 128) for a function key? Ex. Let's say you want to barcode the F4 function key, so that a user can display a different screen instead of actually pressing the F4 key. Do you use Hexidecimal or Ascii or what type of letters/symbols/numbers? I actually need this info for all function keys.

Thanks for any help!

 
Try to use in DDS definition in Display file codes

A CF03(03 'Exit')
A CF05(05 'Refresh')
A CF06(06 'Create')
A CF12(12 'Cancel')

or CA03...

In RPG or CL program use normal indicators *IN03, *IN05.., or you can in RPGIV use rename indicators:

DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++
D #IndicatorPtr * INZ(%ADDR(*IN))
D DS BASED(#IndicatorPtr)
D #F03Key 3 3
D #F05Key 5 5


Martin
 
Could I place a hidden field on each display screen, make it input capable, print a barcode as "#F03key", and then code the program to accept the barcode "#F03key" to mean the same as F3 which is End program? -or- is there an easier way?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top