banner



How To Run Cobol Program In Windows

View previous topic :: View side by side topic
Author Message
flyingSnail

New User

Joined: 15 Jun 2005
Posts: five
Location: Communist china


Post Posted: Thu Jun 16, 2005 viii:21 am
Reply with quote

In order to self-study COBOL programming technique, I need to test some COBOL programs on my PC. Only I don't know how to build such a environment. I need your aid. Thank y'all
Back to meridian

View user's profile Send private message

lucky

New User

Joined: 01 Jun 2005
Posts: 12
Location: Croatia


Post Posted: Thu Jun 16, 2005 12:12 pm
Reply with quote

Howdy!

I call up that the best way would be to get IBM VisualAge for COBOL, or Microfocus Net Limited (ww.microfocus.com). They are both compatible with MF COBOL.

There are also another solutions, like TinyCOBOL but they are compatilble with MF COBOL.

Check Mainframe Downloads

These are the ones I used...

Back to peak

View user's profile Send private message

sudheer648

New User

Joined: 23 May 2005
Posts: 97
Location: Chennai


Post Posted: Thu Jun 16, 2005 12:33 pm
Reply with quote

Hi flyingSnail,

I am pretty not sure how they compile in example of pc cobol.

But running is done with a control called RUNCOB i think.

Back to top

View user's profile Send private message

flyingSnail

New User

Joined: xv Jun 2005
Posts: v
Location: China


Post Posted: Thu Jun xvi, 2005 5:15 pm
Reply with quote

Hi lucky and sudheer648,

Thanks for your help. Very happy to become your warm aid.

Dorsum to top

View user's profile Send private message

vishal_a

New User

Joined: 24 May 2005
Posts: 45
Location: Noida


Post Posted: Wednesday Jul 06, 2005 9:41 am
Reply with quote

hi
well information technology totally depends upon the compiler u have got . Since i have got a compiler which runs every bit
create a folder in any of your drive c: , d: with name equally cobol
then on command prompt type cobol followed past filename saved with .cob extension.
Later on compiling type runcob followed past filename which has been compiled in previous stride.

This volition piece of work

Regards
Vishal

Dorsum to elevation

View user's profile Send private message

vini_srcna

Active User

Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark


Post Posted: Fri Jul 08, 2005 4:38 pm
Reply with quote

hi,

iam having an idea to practise it with cobol 85 compiler. but u should get the compiler from downloads. its approximately around 800kb. copy this compiler into any of ur drives(c,d..). subsequently this go to command prompt and enter this compiler directory. type the command edit, u will become an editor where u can type in the cobol pgm after tat save it with a .cob extension. after these steps come up back to dosprompt by using the keys Alt+f+x. then type the command cobol3 filename.cob at present this shows the pgm along with errors and warnings . if its free of errors type the command crun3 filename (without extension) u will exist able to run into the output.

regards
vinay

Back to top

View user's profile Send private message

parikshit123

Active User

Joined: 01 Jul 2005
Posts: 269
Location: Bharat


Post Posted: Mon Jul 11, 2005 12:03 am
Reply with quote

Hi,

I use microfocus cobol compiler for DOS/ windows.

Infact y'all tin find a cobol compiler from
www.ibmmainframes.com/downloads.html

All you need to do is to extracts the zip file into your c: or d: ... drives
and and then, open up your command prompt
1. Beginning--> run --> cmd ( for windows NT, xp, 2K)
and chage to your cobol directory
e.g.
c:\>cobol\
2. Edit your cobol plan using your favourite editor , similar EDIT, notepad ...etc.
iii. To compile your programm,

cobol programname.cbl
it will requite you three prompts for naming the obj , list etc files.

You tin can avoid this past putting semicolon afterward your command
cobol programname.cbl ;

iv. You need to link your program
link programname ;

Note that you shouldn't include .cbl or .obj extension here in link control

5. If everything is okay, you should have programname.exe file generated which is your executible module.

Well, running Microfocus cobol compiler on unix boxes like IBM aix is little unlike

1. cob programname.cbl
or
cob -u programname.cbl

This compiles and links the program
ii. runcob programname

This runs the program

Allow me know if you need any further description.

Back to top

View user's profile Send private message

venu.pamulapati

New User

Joined: 23 Oct 2010
Posts: 5
Location: bangalore


Post Posted: Wednesday Nov 03, 2010 5:58 pm
Reply with quote

Hello whatsoever trunk could u delight send m th link how to piece of work cobol compler in desktop ?
Back to top

View user's profile Send private message

PeterHolland

Global Moderator

Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen


Post Posted: Wed Nov 03, 2010 six:05 pm
Reply with quote

world wide web.google.nl/search?hl=nl&rls=com.microsoft%3Aen-us&rlz=1I7SKPB_en&q=cobol+compiler+desktop&btnG=Zoeken&aq=f&aqi=&aql=&oq=&gs_rfai=
Dorsum to top

View user's profile Send private message

expat

Global Moderator

Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales


Post Posted: Wed Nov 03, 2010 6:05 pm
Reply with quote

Enrico ------------- statistics please icon_lol.gif
Dorsum to top

View user's profile Send private message

venu.pamulapati

New User

Joined: 23 Oct 2010
Posts: 5
Location: bangalore


Post Posted: Midweek Nov 03, 2010 half-dozen:10 pm
Reply with quote

tx for sending the link mr.PeterHolland

one mor affair how work on this ?

is at that place any on line compiler to piece of work cobol programs
?

Back to peak

View user's profile Send private message

enrico-sorichetti

Superior Fellow member

Joined: 14 Mar 2007
Posts: 10821
Location: italy


Post Posted: Wed Nov 03, 2010 six:47 pm
Reply with quote

deplorable for sleeping on the task icon_biggrin.gif
Lawmaking:
The topic has been resurrected subsequently
...          5 year(s) - (months difference / 12 )
...          5 year(s) - (divergence )
...         64 months
...       1941 days
...      46601 hours
...    2796115 minutes
...  167766900 seconds
Back to meridian

View user's profile Send private message

enrico-sorichetti

Superior Fellow member

Joined: 14 Mar 2007
Posts: 10821
Location: italia


Post Posted: Wed Nov 03, 2010 6:51 pm
Reply with quote

for those interested hither the REXX script
Code:
#!/opt/ooRexx/bin/rexx
numeric digits 24

parse arg how

tmsto = "Jul 10, 2005 vii:33 pm "
tmstn = "November 03, 2010 1:28 pm"

parse var tmsto mnth gday "," year hh ":" mm pm
hh = correct( hh // 12 , two , 0)
if  pm = "pm" then ,
hh = right( hh + 12 , 2 , 0)
dateo = appointment("s", gday mnth year, "n") || "-" || hh || ":" || mm || ":00"

parse var tmstn mnth gday "," year hh ":" mm pm
hh = right( hh // 12 , 2 , 0)
if  pm = "pm" so ,
hh = correct( hh + 12 , 2 , 0)
daten = appointment("s", gday mnth year, "north") || "-" || hh || ":" || mm || ":00"

diff = d2s(daten) - d2s(dateo)

say.0 = seven
say     "The topic has been resurrected after"
say.1 = "..." right(diff,ten) ,
"seconds"
say.two = "..." right(unequal % ( 60 ),10) ,
"minutes"
say.three = "..." right(diff % ( lx * 60 ),10) ,
"hours"
say.4 = "..." right(diff % ( threescore * sixty * 24 ),10) ,
"days"
say.v = "..." right(( substr(daten,1,4)*12 + substr(daten,5,ii) ) - ,
( substr(dateo,1,4)*12 + substr(dateo,5,ii) ),10) ,
"months"
say.half dozen = "..." right(substr(daten,one,4) - substr(dateo,1,four),10) ,
"twelvemonth(s) - (difference )"
say.7 = "..." right(( ( substr(daten,1,4)*12 + substr(daten,5,2) ) - ,
( substr(dateo,1,4)*12 + substr(dateo,5,2) ) ) % 12,10) ,
"yr(s) - (months difference / 12 )"

if how = "" then ,
parse value 1 say.0 "-1" with t f southward
else ,
parse value one say.0  "1" with f t southward

do  i = f to t by s
say say.i
cease

go out

d2s:procedure
parse arg dt
parse var dt d "-" h ":" thousand ":" south
render date("b",d,"s")*(24*threescore*60) + h * sixty * sixty + m * sixty + s

Back to height

View user's profile Send private message

PeterHolland

Global Moderator

Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen


Post Posted: Wed Nov 03, 2010 6:54 pm
Reply with quote

Enrico, where are the milli-seconds?
Back to meridian

View user's profile Send private message

enrico-sorichetti

Superior Member

Joined: 14 Mar 2007
Posts: 10821
Location: italia


Post Posted: Wed Nov 03, 2010 7:20 pm
Reply with quote

I did non mail service the milliseconds because information technology was but a row with the seconds multiplied by thou

no visual change in the rows pattern icon_biggrin.gif

Back to meridian

View user's profile Send private message

PeterHolland

Global Moderator

Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen


Post Posted: Wed November 03, 2010 x:14 pm
Reply with quote

Enrico,

that i understand. But multyplying by chiliad gives me a head anguish. Please accept my historic period in account. icon_mad.gif

Back to top

View user's profile Send private message

View previous topic :: :: View next topic


Similar Topics
Topic Forum Replies
No new posts Search substring in internal table of... COBOL Programming 2
No new posts TSO WHOIS Command in JCL Plan JCL & VSAM five
No new posts Calling COBOL DB2 programme from a COBO... COBOL Programming 2
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
No new posts Rexx plan reading a DSN then write... CLIST & REXX 4
Search our Forums:

Source: https://ibmmainframes.com/about3662.html

Posted by: thomasgove1986.blogspot.com

0 Response to "How To Run Cobol Program In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel