MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing 500 Char Data thru JCL to a Program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Rchilla
Beginner


Joined: 23 Dec 2002
Posts: 4
Topics: 2

PostPosted: Mon Dec 23, 2002 6:58 am    Post subject: Passing 500 Char Data thru JCL to a Program Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Dec 23, 2002 7:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Rchilla
Beginner


Joined: 23 Dec 2002
Posts: 4
Topics: 2

PostPosted: Mon Dec 23, 2002 7:33 am    Post subject: Reply with quote

Your immediate response is highly appreciated

Thanq Kolusu.


Rchilla.
_________________
Rchilla
Back to top
View user's profile Send private message
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Mon Dec 23, 2002 11:16 pm    Post subject: Reply with quote

If you still need to use linkage section to pass your 500 bytes data, check out this tip.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group