Convert COBOL input to different format.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Previous topicNext topic

Topic Author
Rahul Mahajan
New Member
Posts: 1
Joined: Sun May 08, 2016 9:46 am

Convert COBOL input to different format.

Post by Rahul Mahajan » Mon Oct 03, 2016 2:46 pm

Hi.

We get a file from a different sever (which I'm not sure if it is windows or some other mainframe) but it's copied to our mainframe as a sequential file as a VB file. LRECL is 300.

We need to process this file through a COBOL program. The COBOL program can process the FB file. I want to convert the VB to fixed length file.

To do that, I used IEBGENER but it did not wor out and I got the error "Conflicting DCB Parameters". Can a sort function do this?




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 892
Joined: Wed Sep 11, 2013 3:57 pm

Re: Convert COBOL input to different format.

Post by enrico-sorichetti » Mon Oct 03, 2016 3:17 pm

learn how to use the proper terminology ...
there are NO cobol inputs...
there are Datasets which are read and written by userland programs and system utilities,
NO dataset content will ever be depending on the language the program is written with


search the forum for DFSORT/SYNCSORT snippets on how to do it,
the issue has been discussed a few times ( hint... VTOF )


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)

User avatar

Akatsukami
Global Moderator
Global Moderator
Posts: 119
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL

Re: Convert COBOL input to different format.

Post by Akatsukami » Mon Oct 03, 2016 7:44 pm

Why don't you just write the program to read a VB data set? We're not talking rocket science here.


"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli

User avatar

Magesh_j
Registered Member
Posts: 33
Joined: Sun Sep 04, 2016 8:50 pm
Zodiac: Gemini

Re: Convert COBOL input to different format.

Post by Magesh_j » Mon Oct 03, 2016 9:21 pm

Rahul Mahajan,

If you catalog a dataset with FB 300 and allow the external server to transfer data into it, then it would be in fixed.

Any file you are transferring without providing the format to mainframe will get cataloged as VB.

Thanks
Magesh



User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1379
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: Convert COBOL input to different format.

Post by Robert Sample » Mon Oct 03, 2016 9:32 pm

Any file you are transferring without providing the format to mainframe will get cataloged as VB.
Maybe, maybe not. DFSMS can be used to set defaults for fixed data set allocation. Also, the FTP default is variable but that can be changed by the site, not to mention the value can be overridden by the FTP QUOTE SITE (or QUOTE LOCSITE) command to fixed instead of variable. So stating that the data set will be catalogued as VB is not necessarily a true statement as the actual default will depend upon the site, the file transfer method, and possibly the DFSMS defaults.



Previous topicNext topic

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”