Add zero padding to string in JCL -


in jcl, how add "0" padding string string length 10? using tssutil v3 tool jcl.

if input "10541", 5 padding added = 0000010541 

here's how sort product, if can't solution tssutil:

//step001  exec pgm=sort                            //sortin dd *                                       24567                                               1456                                               47865                                               24875                                               1                                               //sortout dd sysout=*                               //sysin dd *                                          option copy                                         inrec build=(1,10,uff,m11,length=10)              //sysout dd sysout=*  

output

0000024567 0000001456 0000047865 0000024875 0000000001 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -