最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ibm midrange - Change the length of source PF in AS400 - Stack Overflow

programmeradmin2浏览0评论

I created a SRCPF in an AS/400. It shows the record length as 92. I think this is the default length. I want to increase the length to 112.

After I copied a CLLE program from record length 112 SRCPF it gives me formatting errors.

With out recreating it, is there a way to change the record length of a SRCPF?

I tried CHGSRCPF. But there is no option to change the length.

CHGSRCPF FILE(DAR/QRPGLESRC) 

I created a SRCPF in an AS/400. It shows the record length as 92. I think this is the default length. I want to increase the length to 112.

After I copied a CLLE program from record length 112 SRCPF it gives me formatting errors.

With out recreating it, is there a way to change the record length of a SRCPF?

I tried CHGSRCPF. But there is no option to change the length.

CHGSRCPF FILE(DAR/QRPGLESRC) 
Share Improve this question edited Mar 14 at 17:31 snakecharmerb 56.2k13 gold badges134 silver badges187 bronze badges asked Mar 14 at 15:51 DarDar 174 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 3

Unfortunately, as you deduced, the answer is no.

You'll need to re-create the source PF with a different record length.

I thought that an ALTER TABLE ... ALTER COLUMN SRCDTA might work, since a source PF is really just another type of DB table, but IBM apparently built in a check to prevent it.

Rename the existing, create the new one and copy the existing members over is quite easy.

I'll caution however, that if you have any kind of change management process that includes automatically copying members between environments or something. You'll have truncation issues if a RECLEN(92) source PF is out there. Or even if individual developers have their own source files.

You might consider changing the default of CRTSRCPRF to 112 or even larger assuming you're dealing with free format ILE RPG. Then track down existing source PF and re-create them in the new larger sizes.

发布评论

评论列表(0)

  1. 暂无评论