Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Passing Value to a COBOL program through SYSIN DD.

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

New User


Joined: 03 Mar 2006
Posts: 3

PostPosted: Mon Apr 24, 2006 3:03 pm    Post subject: Passing Value to a COBOL program through SYSIN DD.
Reply with quote

Hi,
I need to pass a String of more than 100 characters to a COBOL Program from JCL through a SYSIN DD statement. Can anybody help me out?

Regards,
Virender Bhat
Back to top
View user's profile Send private message

Pollyannaish

New User


Joined: 09 Jul 2005
Posts: 31
Location: Pune, India

PostPosted: Mon Apr 24, 2006 3:26 pm    Post subject:
Reply with quote

I am not very sure of two things in your requirement:-

1. Why do you want to pass it thru SYSIN?
2. Why are u not using a file instead of SYSIN when the length is more than could be handles thru PARM parameter.

is there any specific requirement that value needs to be passed thru SYSIN only?
Back to top
View user's profile Send private message
virender_bhat

New User


Joined: 03 Mar 2006
Posts: 3

PostPosted: Mon Apr 24, 2006 3:57 pm    Post subject:
Reply with quote

Basically I need to pass some description to a Batch Program which sometimes becomes more than 100 characters. Using a file I think is not worth for this. At present I am using PARM parameter, but as I said sometimes the string is of more than 100 characters.
Back to top
View user's profile Send private message
Pollyannaish

New User


Joined: 09 Jul 2005
Posts: 31
Location: Pune, India

PostPosted: Mon Apr 24, 2006 4:38 pm    Post subject:
Reply with quote

In that case use this link

http://www.simotime.com/cblpar01.htm#CobolProgramSysin


Let me know if you need more help..
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Apr 24, 2006 6:07 pm    Post subject: Re: Passing Value to a COBOL program through SYSIN DD.
Reply with quote

virender_bhat, what information are you looking for? There is no length restriction for the data passed through the SYSIN DD statement or through the PARM statement.
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us