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 -

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

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -