Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Writing a file using online program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Writing a file using online program
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: 2100
Location: UK

PostPosted: Fri Jun 30, 2017 2:03 pm    Post subject:
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    Post subject: Reply to: Writing a file using online program
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: 8400
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 30, 2017 4:55 pm    Post subject: Reply to: Writing a file using online program
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert VB file to FB plus special fo... cz016m SYNCSORT 11 Fri Oct 19, 2018 7:26 pm
No new posts Picking up the latest PS file pema_yozer JCL & VSAM 8 Thu Oct 11, 2018 12:26 pm
No new posts Process only last key record in a fil... Naveen.katkuri24 DFSORT/ICETOOL 8 Tue Oct 09, 2018 9:39 am
No new posts ISPF 3.4 edit of a ps file, disp use... Carrie Da Silva TSO/ISPF 3 Fri Sep 21, 2018 3:01 am
No new posts How to find if segment is read in any... Priyanka AR IMS DB/DC 12 Thu Sep 20, 2018 1:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us