News Stay informed about the latest enterprise technology news and product updates.

RPG edit codes and the format of the BIF for editing in RPG IV

Search400.com member Russ Khoury uses this cheat sheet often and finds it very helpful when he's working with RPG edit codes and needs the format of the BIF for editing in RPG IV.

Search400.com member Russ Khoury uses this cheat sheet often and finds it very helpful when he's working with RPG...

edit codes and needs the format of the BIF for editing in RPG IV.

Using BIF edit codes

%editc %editc(numeric:editcode {: *ASTFIL | *CURSYM | currency-symbol})

 C  eval  editedDt = %editc(date6:'Y') 
c  eval  amount = %editc(price:'1':*cursym) 

Edit code summary

  
Code Comma  Zeros  Sign
1     Y      Y      N
2     Y      N      N
3     N      Y      N
4     N      N      N 

5-9 User-defined
A     Y      Y      CR
B     Y      N      CR
C     N      Y      CR
D     N      N      CR
J     Y      Y      - (right)
K     Y      N      -
L     N      Y      -
M     N      N      -
N     Y      Y      - (left)
O     Y      N      -
P     N      Y      -
Q     N      N      -  

MEMBER PROFILE

Name: Russ Khoury

Current position: consultant

Member has worked on the iSeries for… 12 years -- 25 years on IBM Midrange systems.

Most enjoyed the iSeries for… it's versatility, the way it's bullet-proof, reliable, constantly being enhanced, and te fact that it's really fun to work with.

Advice for other iSeries users: Think iSeries first. At times we're presented with problems to solve that on the surface may not seem as likely iSeries-possible solutions. But given today's capability of the iSeries, more often than not there is an iSeries (read reliable) solution to the problem.

For example, at one of my clients, we retrieve, via FTP, a zip file of products from one of our suppliers. Initially, I used a PC to retrieve the file, used a PC unzip utility to extract the data, then pushed it to the IFS of the 400 for processing. By examining iSeries solutions, I now use the iSeries to retrieve the file via FTP, use the QShell ajar utility to unzip the data, and then continue processing the file. I now have a process that strictly runs on the iSeries, is more reliable, easier to diagnose in the event of a problem, and a task that I can reliably schedule or give to a user to run from a menu.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close