IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to submit cobol pgm from rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Nov 15, 2011 12:54 am
Reply with quote

If cobol pgm takes input mainframe file and writes output into mainframe file then how to write a code in rexx. pls provide example if you have
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 15, 2011 1:02 am
Reply with quote

OK for the language barrier ...
but

Quote:

How to submit cobol pgm from rexx

If cobol pgm takes input mainframe file and writes output into mainframe file then how to write a code in rexx. pls provide example if you have


what in heaven does that gibberish mean ?

those words might make sense to You, not to those willing to help
if You want good replies learn to post good questions
-- at least try to post meaningful sentences
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Nov 15, 2011 1:02 am
Reply with quote

Are you asking how to read one dataset and write another, in rexx, in the same sort of way Cobol does? If not, can you make it a bit clearer, please?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Nov 15, 2011 1:03 am
Reply with quote

Hello,

Suggest that you compile/link the cobol code and then submit the JCL needed to run this program.

I see no need for rexx. . . icon_confused.gif
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Tue Nov 15, 2011 1:12 am
Reply with quote

If your requirement is to execute the COBOL program from a REXX EXEC running under TSO, then

1) allocate the required input and output files - assigning them to the ddnames expected by the COBOL program, then

2) execute the COBOL program - e.g.

ADDRESS TSO
"CALL 'your.load.library(pgmname)' "
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
Search our Forums:

Back to Top