Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cobol varaible field length is more then 18 !

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
prem_ibm

New User


Joined: 15 Sep 2007
Posts: 31
Location: Chennai

PostPosted: Sat Apr 14, 2012 8:13 am    Post subject: Cobol varaible field length is more then 18 !
Reply with quote

Hi Every one !

Unfortunately i got one requirement where i have to divide one field which is more then 18 in length.

i am thinking to devide data in half part.....later this will be merge...to get data length equal to 18 or less then 18.

expected result should be same(whether will dividing in one short or half..half and merging...for final dividation)


Thanks

Prem
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Apr 14, 2012 9:16 am    Post subject: Reply to: Cobol varaible field length is more then 18 !
Reply with quote

Does your compiler support the ARITH(EXTEND) option?

What is your Cobol Version/Release?

If it doesn't support ARITH(EXTEND), then this division is easily accomplished via an Assembler sub-program.

Assembler supports up to 16-Bytes/31-Digits, Packed-Decimal (COMP-3) or you can use the Assembler 64-Bit "Grande" Registers or Aligned-Doublewords along with the "Divide Grande" instruction.

Enterprise PL/I can also do this.

Anyway you look at it, it can be done....
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7307

PostPosted: Sat Apr 14, 2012 2:24 pm    Post subject: Reply to: Cobol varaible field length is more then 18 !
Reply with quote

Surely you are not the first at your site to use a wildly big number? Ask someone who's already done it.

If you are, do as Mr Bill indicates, look at the compile options at the start of your output listing from a compile. Early on, you should/may see ARITH(COMPAT). If so, find out from your support people how to compile with ARITH(EXTEND).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 1 Wed Mar 29, 2017 12:47 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us