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

Passing Value to a COBOL program through SYSIN DD.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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

Global Moderator


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

PostPosted: Mon Apr 24, 2006 6:07 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top