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: 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: 1925
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: 8189
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 Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm

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