how will u code parm parameter and where pls ?

Answer Posted / rakesh reddy

In JCL

//step1 exec pgm=cobprog,parm='abcdef'

In COBOl

LINKAGE SECTIN.

01 PARM-FIELD.
05 PARM-LENGTH PIC S9(4)comp.
05 PARM-VALUE PIC X(6).

PROCEDURE DIVISION USING PARM-FIELD.



abcdf will reflect in PARM-VALUE

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2329


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

639


How can you get the ksds file records into your cobol program?

639


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1227


When is inspect verb is used in cobol?

671






What is the usage of comp fields in cobol?

651


What are declaratives and what are their uses in cobol?

706


What is perform what is varying?

701


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1775


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

928


how to access the file from prodution from changeman tool and to submit a file to production

6672


What is the difference between external and global variables in COBOL?

809


What is Pic 9v99 Indicates in COBOL?

720


Which division and paragraphs are mandatory for a COBOL program?

707


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8152