while creating an object for a logical file we will use in CL/400
CRTLF FILE(library/logical-file-member) SRCFILE(SARKNS/FIVE)
But I need to give the logical-file-member name as a field like this
pgm
Dcl var(&var1) type(*char) len(10)
chgvar var(&var1) value('logical-file-member')
CRTLF FILE(SARKNS/&var1) SRCFILE(SARKNS/FIVE)
endpgm
In this case this logical file is not created its giving cpf7302 object
not created.
Can any one help me in this regards.
Thanks in Advance.
Software/Hardware used:
ASKED:
March 26, 2009 7:43 AM
UPDATED:
March 27, 2009 1:31 PM
Hi,
You’re using your variable for the file name instead of the member name :-
CRTLF FILE(SARKNS/FIVE) SRCFILE(SARKNS/FIVE) MBR(&var1)
‘logical-file-member’ is longer than the 10 characters allowed for the member name and the member name won’t support ‘-’ characters…..
Regards,
Martin Gilbert.