Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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: 4
Location: Germany

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: 1868
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: 4
Location: Germany

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: 8151
Location: East Dubuque, Illinois, 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us