cobol

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
supriya
Member
Posts: 7
Joined: Wed Sep 27, 2006 12:19 pm

cobol

Post by supriya » Wed Sep 27, 2006 12:45 pm

hi ,
1) :?: In cobol program if i we write accept statement and not passed from jcl,then what happens.
2) :wink: How to pass parameters to cobol (if parameter exceeds 100 characters)

toddnugen
Member
Posts: 3
Joined: Thu Sep 28, 2006 12:44 am

Accept and parm

Post by toddnugen » Thu Sep 28, 2006 2:16 am

1. If dont have //sysin dd dummy in jcl then you will have abend for
"File not found".

2. Used few times 12 years ago. Must combine the rule of single quote for PARM and continuing rule of sign and colums for JCL. Recalls,

single quote ' at col. 71, and continue char X at col 72
then next JCL statement:
start //
single quote ' at col 4
followed by the rest of string and '

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Thu Sep 28, 2006 11:21 am

Good answers toddnugen.


Thanks,
Krishna.

Kgumraj
Member
Posts: 4
Joined: Thu Nov 16, 2006 8:45 pm
Location: Hyderabad

Post by Kgumraj » Thu Nov 16, 2006 9:37 pm

1) It will give SOC7 error

2) What Supriya meant is in parm we cant pass characters more than 100. I dont know what is the exact limit of character lenght to be passed, But for this we can use a file or sysin rather than parm option.
With Love
Kiran G R

rajesh.singh
Member
Posts: 3
Joined: Tue Aug 26, 2008 11:34 am

Post by rajesh.singh » Wed Aug 27, 2008 3:07 pm

:P
nice answer

pankaj_zenith2008
Member
Posts: 23
Joined: Wed Jul 29, 2009 4:54 pm
Location: chennai, Bangalore

Post by pankaj_zenith2008 » Tue Aug 18, 2009 6:50 pm

can you please please give any example ( CODE EXAMPLE ) for the explanation of how to pass values using sysin, i deadly nead tha answer,

help help

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Tue Aug 18, 2009 9:22 pm

You can find the example in the following JCL tutorial

http://www.geocities.com/srcsinc/drona/ ... pter7.html
Natarajan
Chennai

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others