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
 

 

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: 4648
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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