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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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