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

Writing a file using online program


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

New User


Joined: 29 Apr 2015
Posts: 7
Location: Sri Lanka

PostPosted: Fri Jun 30, 2017 1:06 pm
Reply with quote

Hello everyone,

I wanted to write a file using a online PL1 program.

I have to write some data into DB2 and simultaneously want to write a XML file using the same data.

Is it possible ? If yes please help me how can I process this in a single step using this online program.

Thanks, icon_neutral.gif icon_sad.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Jun 30, 2017 2:03 pm
Reply with quote

You cannot - 2 reasons:
1 - it is a dataset not a file
2 - all i/o is handled by IMS or whatever so you have to use a database

You can, however, refer to your data set as a GSAM database.
Back to top
View user's profile Send private message
grvtomar

New User


Joined: 29 Apr 2015
Posts: 7
Location: Sri Lanka

PostPosted: Fri Jun 30, 2017 4:33 pm
Reply with quote

Thank you Mr. Clouston,

I have to find alternate solution. May be a batch would be good option for that. What would you suggest in this regard ?


Best Regards,
Gaurav
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 30, 2017 4:55 pm
Reply with quote

What you want to do would be easy in CICS. However, since you're using "online", CICS may not be relevant to your needs.

The best answers on this, or any forum, come when the question thoroughly explains the environment, the perceived problem, and what has been tried already. It helps when the question uses standard terminology (mainframes have files in Unix System Services and on tapes -- period; all disk data is stored in data sets, not files).
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 Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top