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
1 Answer
Reset to default 3Unfortunately, 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.