IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Dynamic file name in PL/1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Appu

New User


Joined: 26 Apr 2010
Posts: 73
Location: India

PostPosted: Wed May 06, 2015 11:47 am
Reply with quote

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
View user's profile Send private message
Appu

New User


Joined: 26 Apr 2010
Posts: 73
Location: India

PostPosted: Wed May 06, 2015 2:06 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed May 06, 2015 2:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 2
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top