×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Library containing "STR$TRIM"

Library containing "STR$TRIM"

Library containing "STR$TRIM"

(OP)
Hello,

I hope I'm in the right place. I'm in a conversion from Cobol to Microfocus Cobol.
The program use to work fine in Cobol, now it compile successfully  but stop at this line when running :
CALL "STR$TRIM" USING BY REFERENCE XLS-H-LINE

and gives me this error :
173 called program file not found in drive directory STR$TRIM"

I'm guessing I'm missing a librairy ? Anybody knows ?
Anybody knows where I can find this library ?

Thanks in advance,
Chantal

RE: Library containing "STR$TRIM"

STR$TRIM is the program specific for the platform you moved from (probably VMS). It's not available in MF COBOL.

RE: Library containing "STR$TRIM"

(OP)
Thanks Mikrom for your reply.

 

RE: Library containing "STR$TRIM"

Quote:

It's not available in MF COBOL.
But the (probably MVS) source module could most likely be ported to the target system and recompiled - just like the other code. . .

RE: Library containing "STR$TRIM"

STR$TRIM seems to be a routine from the VMS Run Time Library, also a program which is probably not written in COBOL and doubt if the source is available.
see: http://h71000.www7.hp.com/doc/73final/5936/5936pro.html

I'm working with ILE COBOL and it has intrinsic functions called TRIM, TRIML and TRIMR (but these functions are an IBM extension):
http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/c0925395647.htm
Maybe MF COBOL has TRIM function too. When not, you need to write your own routine - for example see this:
http://www.tek-tips.com/viewthread.cfm?qid=1206197
 

RE: Library containing "STR$TRIM"

(OP)
Thanks Everyone for your replies.

Someone gave me a routine doing something similar as str$trim.
I have another error so I will open a new post.

Thanks so much

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close