I am running a java batch job daily which will collect the data of certain details and it builds an inputStream. This stream is to be stored as a gdg in remote mainframe while the host server is UNIX. Previously we used FTP, but as it involves mainframe the new instructions suggest to use Connect:Direct.
Is there any way we can transfer this data to create a new dataset into mainframe using C:D? Because everytime I run into other examples, it is always used in file transfer but I don't have a file instead I have inputStream variable.
Transferring a inputStream using Connect Direct in java
1.9k Views Asked by gopal sahu At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in INPUTSTREAM
- Java Socket - how does the read() method know if the end of stream has been reached?
- What is meant by Streams w.r.t Java IO
- Read file from local PC from network deployed app to InputStream
- PDFBox: extracting images from pdf to inputstream
- InputStream vs Reader
- Reading content from a URL failing
- InputStream appears to be loading twice
- skip method in CipherInputStream
- How to send ZipInputStream as attachment via java mail?
- Reading Microsoft Word in order read
- Parse InputStream "on the fly" / re-use an InputStream
- audio reading in jar executable file
- How to download and stream audio in Android?
- Trying to use getResourceAsStream() and failing
- Cannot get an image from inputStream
Related Questions in MAINFRAME
- difference between passing control to different program using return() and calling a program using xctl
- Getting output queue via FTP of a Mainframe (zOS)
- SELECT operator
- authentication between mainframe system and .net web service
- Register a copied application to registry
- I have a variable with PIC S9(4). Whether I use COMP or COMP-3 here?
- Converting a numeric to packed-decimal in Stored Procedure
- EBCDIC to ASCII not working Properly
- Send text file from Mainframe to IBM MQ
- Submit another JCL as a step from main JCL based on RC of the previous step {via Internal Reader}
- Accessing Mainframe datasets using FTP form Python
- Access a VSAM File from Rexx
- How to print decimal points in cobol?
- Procedure was expanded as instream procedure definition
- When a sql returns more than one value, what value will be stored in the host variable
Related Questions in CONNECT-DIRECT
- Send files with Connect:Direct from HP NonStop (OSS) to UNIX
- how to enable connect direct DMZ
- Custom prefix for Connect Direct pnum
- Is there a way to check existence of file in MVS before attempting copy to Unix server
- Read file from .csv and pass the details to another script
- Windows Dos Command File Not Found (connect:direct Process)
- Writing Chinese and English characters to Mainframe in single file using Java
- How to send a binary (ebcdic format) file with variable blocks (each record has variable length), from a unix system to a unix mainframe through NDM?
- connect-direct iseries to mainframe (NDM) setup
- What command can I use in a JCL + NDM script to make the transmissions wait?
- Connect:Direct(NDM) Support in Apache Camel
- Does Solaris 8 Support Connect:Direct Version 3.3.03
- Connect direct with splunk
- Transferring a inputStream using Connect Direct in java
- Response from Mainframes to iseries
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Have you looked through IBM Sterling Connect:Direct's Java application programming documentation yet? It should answer your questions, but please post a follow-up if not. Here's the direct link to those programming reference materials:
https://www.ibm.com/support/pages/sterling-connectdirect-application-interface-java-documentation
This reference material was published in 2011. The IBM Knowledge Center may contain some updates since Connect:Direct has evolved substantially since then, so I'd also look there, just in case.
However, I should raise a probable concern with the whole daily batch approach you describe. Will the end users be satisfied with only daily uploads of these data? That'll mean they're only ever seeing a historical state of the world as it existed many hours ago. One possible alternative pattern is to "de-batch" this data flow and shift it from a daily FTP (file transfer) (that presumably must complete processing within at least reasonably strict batch processing deadlines) to a continuous or near-continuous data upload stream of some kind (which may also offer more operational flexibility). There are a variety of ways to make that sort of shift, and I may be able to suggest some options with some more information about the data, the applications, and their usage contexts.