CL/400 CRTLF
90 pts.
0
Q:
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.
ASKED: Mar 26 2009  7:43 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
3250 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
There are any number of reasons why you would get this error. Have you checked the job log?
Last Answered: Mar 26 2009  2:47 PM GMT by Teandy   3250 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Gilly400   23625 pts.  |   Mar 27 2009  1:31PM GMT

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.

 
0