90 pts.
 CL/400 CRTLF
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

Answer Wiki:
There are any number of reasons why you would get this error. Have you checked the job log?
Last Wiki Answer Submitted:  March 26, 2009  2:47 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 23,625 pts.