Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: COBOL 3.2 o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 17 Topic 4084 of 4195
Post > Topic >>

Re: COBOL 3.2 on z/OS reading variable len files

by "Michael Mattias" <mmattias@[EMAIL PROTECTED] > Apr 17, 2008 at 12:51 PM

"William M. Klein" <wmklein@[EMAIL PROTECTED]
> wrote in message 
news:_vANj.25950$i_6.16089@[EMAIL PROTECTED]
> There is no TRULY sup****ted way in IBM mainframe COBOL to create an FD
for 
> an VB file that will work for "any" (non-specific) LRECL.

You know,  after my little "VB" faux pas yesterday, I actually may be able

to help here.

I actually did this once - well, to be accurate, I solved the problem, 
although not in the COBOL program - by cheating.

Before my COBOL program sup****ting "any" record length files ran, I either

IEBGENER'ed or IDCAMS'ed or  SYNCH-SORTed (memory IS the second thing to
go 
you know) the input file to a temp file and read that in my COBOL program.

Whichever utility I used read the input and was agnostic re its LRECL and 
BLKSIZE and FB or VB , and it made the output  whatever it was I had 
specified in the COBOL program's input.

I''m thinking  I probably added some kind of 'record indicator' to the 
output since I didn't need the entire 32000 (something like that)  bytes I

had the utility create for actual file data.

Not that this would be terribly useful if this is supposed to be an 
interactive program, but for a batch job w/JCL, it's one dinky little step

to insert.

If nothing else maybe this will give someone else some ideas. (eg doesn't 
IDCAMS have a program API you can call from COBOL?)

-- 
Michael C. Mattias
Tal Systems Inc.
Racine WI
mmattias@[EMAIL PROTECTED]

 




 17 Posts in Topic:
COBOL 3.2 on z/OS reading variable len files
"Luke Skywalker"  2008-04-16 20:44:04 
Re: COBOL 3.2 on z/OS reading variable len files
"Michael Mattias&quo  2008-04-16 19:02:52 
Re: COBOL 3.2 on z/OS reading variable len files
"William M. Klein&qu  2008-04-16 20:26:15 
Re: COBOL 3.2 on z/OS reading variable len files
"Michael Mattias&quo  2008-04-16 18:04:59 
Re: COBOL 3.2 on z/OS reading variable len files
"William M. Klein&qu  2008-04-16 23:19:08 
Re: COBOL 3.2 on z/OS reading variable len files
"Pete Dashwood"  2008-04-17 11:30:59 
Re: COBOL 3.2 on z/OS reading variable len files
"William M. Klein&qu  2008-04-16 20:24:43 
Re: COBOL 3.2 on z/OS reading variable len files
"Luke Skywalker"  2008-04-17 05:37:42 
Re: COBOL 3.2 on z/OS reading variable len files
"William M. Klein&qu  2008-04-17 04:39:23 
Re: COBOL 3.2 on z/OS reading variable len files
"Michael Mattias&quo  2008-04-17 12:51:35 
Re: COBOL 3.2 on z/OS reading variable len files
Howard Brazee <howard@  2008-04-17 07:44:00 
Re: COBOL 3.2 on z/OS reading variable len files
Binyamin Dissen <posti  2008-04-22 16:28:17 
Re: COBOL 3.2 on z/OS reading variable len files
Clark F Morris <cfmpub  2008-04-17 11:12:18 
Re: COBOL 3.2 on z/OS reading variable len files
Joe Zitzelberger <zber  2008-04-17 00:15:29 
Re: COBOL 3.2 on z/OS reading variable len files
"Luke Skywalker"  2008-04-17 19:57:44 
Re: COBOL 3.2 on z/OS reading variable len files
Robert <no@[EMAIL PROT  2008-04-17 01:18:19 
Closing this thread Re: COBOL 3.2 on z/OS reading variable len f
"Luke Skywalker"  2008-04-17 20:03:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:38:50 CDT 2008.