Author |
Message |
Topic: Resize field in COBOL? |
Disco_Stu
Replies: 1
Views: 1503
|
Forum: Application Programming Posted: Thu Aug 25, 2005 12:43 pm Subject: Resize field in COBOL? |
Think i just answered my own post. I can use SUBSTR(fieldname,start,length) in my SQL to point to the portion of the string that i want to use. |
Topic: Resize field in COBOL? |
Disco_Stu
Replies: 1
Views: 1503
|
Forum: Application Programming Posted: Thu Aug 25, 2005 12:39 pm Subject: Resize field in COBOL? |
I am passing a character string to a cobol program. A query is then going to be done on this string.
The max size is 40 characters. I need to size of the field used in the query to match the size ... |
Topic: Store procedure read/write to flat file |
Disco_Stu
Replies: 1
Views: 1451
|
Forum: Database Posted: Thu Jul 22, 2004 1:30 pm Subject: Store procedure read/write to flat file |
I am wondering if it is possible to read/write to a flat file from a DB2 stored procedure? I read something that implied its possible. But it didnt go into any details about how.
My experience ... |
Topic: String Command with Tables/Arrays |
Disco_Stu
Replies: 9
Views: 3896
|
Forum: Application Programming Posted: Thu Jun 10, 2004 9:07 am Subject: String Command with Tables/Arrays |
This is for a Cobol program so the solution you gave would work. But to add some more difficulty to it, what if I do not know the actual number of table entries. If Table is set up for 100 occurs, b ... |
Topic: String Command with Tables/Arrays |
Disco_Stu
Replies: 9
Views: 3896
|
Forum: Application Programming Posted: Thu Jun 10, 2004 6:47 am Subject: Example |
Table looks like this: 3 rows of data with 4 columns
abc xyz n 12345 12345
abc xyz y 56789 56789
abc ooo n 2468 2468
And I would li ... |
Topic: String Command with Tables/Arrays |
Disco_Stu
Replies: 9
Views: 3896
|
Forum: Application Programming Posted: Wed Jun 09, 2004 3:37 pm Subject: String Command with Tables/Arrays |
I am working with a table of data that I need to String together to send to another process. If my table has 5 columns and 4 rows, how would I use the String command to put all the data in this table ... |
Topic: exit rtn with multiple outputs |
Disco_Stu
Replies: 4
Views: 3198
|
Forum: Utilities Posted: Thu Oct 30, 2003 11:01 am Subject: exit rtn with multiple outputs |
Kinda lost me here. Are you basically saying that because of the E35 rtn, OUTFIL is ignored, thus it doesnt know where to write the new output from the E35 rtn? So it just ends up nowhere. |
Topic: Synsort Exit Rtn |
Disco_Stu
Replies: 12
Views: 5755
|
Forum: Utilities Posted: Thu Oct 30, 2003 9:29 am Subject: Synsort Exit Rtn |
This is what the trailer record looks like.
1 02 STATDB-LS-CTL-REC REDEFINES STATDB-LS-DETAIL-REC.
1 05 STATDB-LS-CTL-REC-TYPE PIC X(2).
3 05 ... |
Topic: exit rtn with multiple outputs |
Disco_Stu
Replies: 4
Views: 3198
|
Forum: Utilities Posted: Thu Oct 30, 2003 9:24 am Subject: exit rtn with multiple outputs |
You may dare to ask. I'm not familar with the report features, so I didnt even consider them an option. I'm looking at them now. But i guess in the long term, I see the exit rtn as a more durable s ... |
Topic: exit rtn with multiple outputs |
Disco_Stu
Replies: 4
Views: 3198
|
Forum: Utilities Posted: Wed Oct 29, 2003 5:14 pm Subject: exit rtn with multiple outputs |
I have one input that i am splitting into 3 outputs. I would like the put a header and trailer record on each output. I have an exit rtn that does this, but I cannot get it to work with multiple out ... |
Topic: Synsort Exit Rtn |
Disco_Stu
Replies: 12
Views: 5755
|
Forum: Utilities Posted: Wed Oct 29, 2003 3:52 pm Subject: Synsort Exit Rtn |
One last question if you have the time...
whats the difference here between the OUTREC control statement
OUTREC FIELDS=(1,153,
X'00',
(155,8,PD,ADD,2 ... |
Topic: Synsort Exit Rtn |
Disco_Stu
Replies: 12
Views: 5755
|
Forum: Utilities Posted: Wed Oct 29, 2003 3:15 pm Subject: Synsort Exit Rtn |
Thanks. There's alot of stuff in there I've never seen before. I'm gonna have to go through it and figure out the details. But from your description i get the basic idea.
Unfortunately, the coun ... |
Topic: Synsort Exit Rtn |
Disco_Stu
Replies: 12
Views: 5755
|
Forum: Utilities Posted: Wed Oct 29, 2003 12:31 pm Subject: Synsort Exit Rtn |
I really don't see the use of an exit in here unless you are doing some complex programming logic.
I need to update the trailer record with the new record count. if records will end up being comb ... |
Topic: Synsort Exit Rtn |
Disco_Stu
Replies: 12
Views: 5755
|
Forum: Utilities Posted: Wed Oct 29, 2003 10:44 am Subject: Synsort Exit Rtn |
Here is my situation:
I am concatenating 5 datasets as input. Each is of the same format.
Header record
Detail record
Trailer record
I need to put these through a syncsort that will ... |
Topic: Replacing copybook |
Disco_Stu
Replies: 3
Views: 3623
|
Forum: Application Programming Posted: Fri Feb 14, 2003 2:20 pm Subject: Replacing copybook |
Thats what i tried (see above). But in my testing, that only seems to work if add colons to the copybook. I can't modify the copybook. |
|