ibm midrange - RPGLE changing the output of a field -


i have field called fname contains first name of employee. output want show first letter of name.

for example, if name "frederic" want output "f" first name.

how manipulate first letter? do edtwrd in prtf file?

edtwrd , edtcde matter work on numeric fields.

you'd need substring value.

fname = %subst(fname:1:1); 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -