Search found 733 matches
Last question first: a copybook is just the COBOL version of a schema. It's programming code, specifically names of fields and their attributes. The character set is not relevant at that level. James provided a good answer, and this is my two cents about an additional point specific to DataStage. Ma...
- Tue Jun 07, 2011 2:47 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: FTP Stage
- Replies: 2
- Views: 2180
The choice between a stage and Unix script is simple: Do you care that you have to land a file on the DS server before transferring it to the mainframe? In general, I don't want extra files that I have to clean up later. That's part personal and part technical (leaving files can be a security risk)....
- Tue Jun 07, 2011 12:45 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: packed unsigned decimal
- Replies: 2
- Views: 3350
If you verify that you have all of the following already, then you have a problem other than packed decimal. Good luck. First and most important step: Import the copybook to the table definitions if you haven't already. If you originally set it up manually, at least save it. Open it via Table Defini...
- Tue Jun 07, 2011 9:52 am
- Forum: General
- Topic: Any Env Variable to Suppress Warnings in DS
- Replies: 4
- Views: 3134
Here is a sample of what we use in the script called by Control-M. It is taken out of context of the whole script with details replaced: CM Command line: DS_ccc_dsjob_run.ksh -d aaa -e bbb -g ccc -p ddd -j %%JOBNAME # Input Parameters: -d <IT Subdivision name>. Required Argument. # -e <DS Environmen...
- Fri Jun 03, 2011 4:09 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading COBOL File..
- Replies: 3
- Views: 3942
- Fri Jun 03, 2011 4:04 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Issue while handling Decimal Fields in CFF Stage
- Replies: 4
- Views: 3532
- Fri Jun 03, 2011 12:59 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading COBOL File..
- Replies: 3
- Views: 3942
I might need more details to be sure, but it looks like you need to do a two-part read of the COBOL file. 1) Read it as a single-field variable length record. That you have a record-length field could be part of the problem. Usually, a variable length record does not process the record length as an ...
- Fri May 27, 2011 10:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Logic to find no. of saturdays and sundays betwen two dates.
- Replies: 17
- Views: 6692
Another approach
Another way to look at this is the need to count "business" days between dates. The problem, as Ray points to concerning holidays varying between cultures/countries, is how to adjust your calendar from one year to the next. You have two requirements: count the number of non-weekend days be...
- Fri May 27, 2011 10:18 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Xml file to Flat file
- Replies: 4
- Views: 2509
- Tue May 17, 2011 8:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Problem reading binary separators in cobol char field
- Replies: 3
- Views: 4243
Hello, Manuel. You seem to be having much fun dealing with your mainframe system. :wink: These separators are not being written in the same way in destination. Can you be more specific? Do the characters get dropped, or are they being written as different characters/hex-values? I should warn you tha...
- Tue May 10, 2011 10:30 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Job continues to run but stops processing
- Replies: 3
- Views: 1449
- Mon May 09, 2011 10:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Wrong "new lines" when reading/writing cobol files
- Replies: 4
- Views: 1998
You're welcome. It's a JCL function, not Cobol. It only needs to be done once -- big assumption: that you will reuse the same dataset name every cycle -- and you will overwrite it every time. The catalog supplies your data control information (DCB or data control block) when the dataset is reference...
- Mon May 09, 2011 10:29 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to Read the COBOL Copybook file
- Replies: 5
- Views: 7321
Thanks for your valuable input,Frankline Here I am trying to read the cobol file from the UNIX environment using CFF stage in a parallel job. So mainframe OS option is not available with me. You're welcome. Is it possible that CFF is the problem? I have little experience with it, and I'm wondering ...
- Mon May 09, 2011 7:28 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Wrong "new lines" when reading/writing cobol files
- Replies: 4
- Views: 1998
- Mon May 09, 2011 7:21 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to Read the COBOL Copybook file
- Replies: 5
- Views: 7321
Anayak, There are two considerations here. One is whether you are confident that CFF can handle the input layout as is. The other is how you intend to use the redefined fields. The first important question: What platform are you reading from with CFF? If it is the usual mainframe OS with filehandlin...