View previous topic :: View next topic |
Author |
Message |
Rchilla Beginner
Joined: 23 Dec 2002 Posts: 4 Topics: 2
|
Posted: Mon Dec 23, 2002 6:58 am Post subject: Passing 500 Char Data thru JCL to a Program |
|
|
I have a request to recieve 500 char data for a program in linkage section thru JCL. I would like to know the possible ways(and possible code) to recieve the data other than file processing technique. I know the way to pass the data from JCL thru PARM parameter but it is restricted to 100 chars(I suppose). ALso, SYSIN option has been tried.
Thanks for all your help. _________________ Rchilla |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Dec 23, 2002 7:15 am Post subject: |
|
|
Rchilla,
I don't think you can pass 500 characters as a parm thru JCL.You can define a seqfile for the parm values.
Code: |
SELECT PARM-FILE
ASSIGN TO PARMFIL
ORGANIZATION IS SEQUENTIAL.
FD PARM-FILE
RECORDING MODE F
LABEL RECORDS ARE OMITTED
DATA RECORD IS PARM-REC.
01 PARM-REC PIC X(500).
|
Then in the procedure division read in this file and process accordingly.
Hope this helps...
cheers
Kolusu |
|
Back to top |
|
|
Rchilla Beginner
Joined: 23 Dec 2002 Posts: 4 Topics: 2
|
Posted: Mon Dec 23, 2002 7:33 am Post subject: |
|
|
Your immediate response is highly appreciated
Thanq Kolusu.
Rchilla. _________________ Rchilla |
|
Back to top |
|
|
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
Posted: Mon Dec 23, 2002 11:16 pm Post subject: |
|
|
If you still need to use linkage section to pass your 500 bytes data, check out this tip. |
|
Back to top |
|
|
|
|