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: 2058
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: 8377
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 Join 2 File using a Join Key scorp_rahul23 DFSORT/ICETOOL 6 Tue Aug 14, 2018 7:36 am
No new posts JCL to send email along with formated... wik123 JCL & VSAM 5 Thu Aug 09, 2018 9:48 am
No new posts How can we create a flat file in JAVA... jasorn Java & MQSeries 2 Wed Aug 08, 2018 3:08 pm
No new posts Send data from a CICS TS program to M... spiThingy CICS 2 Wed Aug 08, 2018 8:58 am
No new posts Formating of Amount field in CLIST be... Anil Kumar Prajapati CLIST & REXX 9 Fri Aug 03, 2018 6:34 pm

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