View previous topic :: View next topic
|
Author |
Message |
Appu
New User
Joined: 26 Apr 2010 Posts: 73 Location: India
|
|
|
|
Hello Team,
I was trying a dynamic file read / write from a PLI program.
Read works fine for me. But write is giving me the error :
IBM0204S ONCODE=84 THE UNDEFINEDFILE CONDITION WAS RAISED BECAUSE A DD STATEMENT OR CMS FILEDEF WAS NOT USED IN (FILE
= INFILE).
Code: |
DCL INFILE FILE RECORD OUTPUT ENV(VB);
OPEN FILE(INFILE)
TITLE('xxxx.xxxx.xxx),SHR');
WRITE FILE(INFILE) FROM(INSTR);
|
Please note that the file exists. |
|
Back to top |
|
|
Appu
New User
Joined: 26 Apr 2010 Posts: 73 Location: India
|
|
|
|
Hello Team,
The issue is resolved ; i had problems with the syntax.
Code: |
OPEN FILE(INFILE)
TITLE('DSN(xxxx.xxxx.xxxx),SHR');
|
|
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Carefully read the "Using the TITLE option of the OPEN statement" topic in Enterprise PL/I for z/OS Programming Guide for your PL/I release. |
|
Back to top |
|
|
|