Passing value to Cobol program through Parm using data in sequential fileSymbolic JCL ConfusionVSAM Status code 04Flushed step return code in jclPassing SYSUID and JOB ID as parameter to COBOL program through JCLPassing symbol value using DFSORT to fileBuffer in cobol file handlingCreating a file with dynamic name in cobolHow to pass values from rexx to jclcobol & JCL removing extra spacesPassing multiple line value from JCL instream to Cobol variable 88

Start job from another SQL server instance

Gerrymandering Puzzle - Rig the Election

Why wasn't the Z6 version of the Infocom Z-machine ported to the IIgs?

History of the kernel of a homomorphism?

How can I get people to remember my character's gender?

Typeset year in old-style numbers with biblatex

Adding command shortcuts to /bin

Install LibreOffice-Writer Only not LibreOffice whole package

Why didn't this character get a funeral at the end of Avengers: Endgame?

getline() vs. fgets(): Control memory allocation

How does summation index shifting work?

Is Benjen dead?

Out of scope work duties and resignation

Is the book wrong about the Nyquist Sampling Criterion?

How does the reduce() method work in Java 8?

Find magical solution to magical equation

Why did the Apollo 13 crew extend the LM landing gear?

Python 3 - simple temperature program

Latex & Markdown files

When an imagined world resembles or has similarities with a famous world

Voltage Balun 1:1

Will 700 more planes a day fly because of the Heathrow expansion?

How to deal with employer who keeps me at work after working hours

Is Soreness in Middle Knuckle of Fretting Hand Index Finger Normal for Beginners?



Passing value to Cobol program through Parm using data in sequential file


Symbolic JCL ConfusionVSAM Status code 04Flushed step return code in jclPassing SYSUID and JOB ID as parameter to COBOL program through JCLPassing symbol value using DFSORT to fileBuffer in cobol file handlingCreating a file with dynamic name in cobolHow to pass values from rexx to jclcobol & JCL removing extra spacesPassing multiple line value from JCL instream to Cobol variable 88






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am setting up a JCL which will pass value of date coming from a sequential file (has one record) (example 20190320) to parm as shown below:



//STEP1 EXEC PGM=ABC,PARM='20190320'



I am trying to pass value of PARM with value of date containing inside sequential file.










share|improve this question




























    1















    I am setting up a JCL which will pass value of date coming from a sequential file (has one record) (example 20190320) to parm as shown below:



    //STEP1 EXEC PGM=ABC,PARM='20190320'



    I am trying to pass value of PARM with value of date containing inside sequential file.










    share|improve this question
























      1












      1








      1








      I am setting up a JCL which will pass value of date coming from a sequential file (has one record) (example 20190320) to parm as shown below:



      //STEP1 EXEC PGM=ABC,PARM='20190320'



      I am trying to pass value of PARM with value of date containing inside sequential file.










      share|improve this question














      I am setting up a JCL which will pass value of date coming from a sequential file (has one record) (example 20190320) to parm as shown below:



      //STEP1 EXEC PGM=ABC,PARM='20190320'



      I am trying to pass value of PARM with value of date containing inside sequential file.







      cobol jcl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 1:10









      deepaklearnerdeepaklearner

      38413




      38413






















          2 Answers
          2






          active

          oldest

          votes


















          7














          Assuming that your COBOL program already contain instructions to retrieve the information passed from JCL using PARM, you may use the PARMDD parameter in conjunction with a DD statement to achieve the task. The DD statement is to define the sequential file with PARM data.



          //STEP1 EXEC PGM=ABC,PARMDD=MYINPUT
          //MYINPUT DD DISP=SHR,DSN=MY.PARM.INPUT
          //SYSOUT DD SYSOUT=*


          Dataset MY.PARM.INPUT can have the value of date.



          Basically, you can't pass more than 100 bytes of data using PARM parameter. PARMDD is usually preferred if you want to pass data > 100 bytes.



          Hope this helps.






          share|improve this answer























          • Thank you so much. Its working.

            – deepaklearner
            Mar 23 at 17:39











          • Glad that my answer helped. Please mark this answer as accepted.

            – Srinivasan JV
            Apr 7 at 6:30


















          3














          You can not do this in the one job.
          Options include



          • Changing the program ABC to read from the file

          • Writing a program/rexx to read the file and call the program ABC

          • Read the file and Generate a new job that calls ABC with the date you have just read. This could be done in a rexx script.

          • Some scheduling systems might support this.

          Please provide a bit more information



          • What scheduling system does your company use

          • Is the program ABC a locally written program ??? that can be changed

          • Is the job part of a batch stream run automatically or submitted by a user.


          Manual Submission



          If the job is being submitted manually you could



          • Write a Rexx Script using ISPF file tailoring to generate && submit the JCL

          • Rexx Macro to update and submit the JCL

          ISPF Edit macro



          you could have



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          in the jour JCL
          and have the rexx edit macro



          • read the file

          • do a replace all on &date

          • I would use the same variables as Controlm

          With JCL



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          the edit macro would some thing like



           /* rexx */
          ADDRESS ISREDIT 'macro'
          Address TSO "EXECIO 1 DISKR indd"
          pull date
          ADDRESS ISREDIT "r $date$" date
          ADDRESS ISREDIT "cancel"


          The edit macro needs to be in the SYSPROC or SYSEXEC libraries. If the
          Macro is called ChgDate you would just






          share|improve this answer

























          • I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

            – deepaklearner
            Mar 23 at 2:07












          • I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

            – zarchasmpgmr
            Mar 23 at 17:31











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309665%2fpassing-value-to-cobol-program-through-parm-using-data-in-sequential-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          Assuming that your COBOL program already contain instructions to retrieve the information passed from JCL using PARM, you may use the PARMDD parameter in conjunction with a DD statement to achieve the task. The DD statement is to define the sequential file with PARM data.



          //STEP1 EXEC PGM=ABC,PARMDD=MYINPUT
          //MYINPUT DD DISP=SHR,DSN=MY.PARM.INPUT
          //SYSOUT DD SYSOUT=*


          Dataset MY.PARM.INPUT can have the value of date.



          Basically, you can't pass more than 100 bytes of data using PARM parameter. PARMDD is usually preferred if you want to pass data > 100 bytes.



          Hope this helps.






          share|improve this answer























          • Thank you so much. Its working.

            – deepaklearner
            Mar 23 at 17:39











          • Glad that my answer helped. Please mark this answer as accepted.

            – Srinivasan JV
            Apr 7 at 6:30















          7














          Assuming that your COBOL program already contain instructions to retrieve the information passed from JCL using PARM, you may use the PARMDD parameter in conjunction with a DD statement to achieve the task. The DD statement is to define the sequential file with PARM data.



          //STEP1 EXEC PGM=ABC,PARMDD=MYINPUT
          //MYINPUT DD DISP=SHR,DSN=MY.PARM.INPUT
          //SYSOUT DD SYSOUT=*


          Dataset MY.PARM.INPUT can have the value of date.



          Basically, you can't pass more than 100 bytes of data using PARM parameter. PARMDD is usually preferred if you want to pass data > 100 bytes.



          Hope this helps.






          share|improve this answer























          • Thank you so much. Its working.

            – deepaklearner
            Mar 23 at 17:39











          • Glad that my answer helped. Please mark this answer as accepted.

            – Srinivasan JV
            Apr 7 at 6:30













          7












          7








          7







          Assuming that your COBOL program already contain instructions to retrieve the information passed from JCL using PARM, you may use the PARMDD parameter in conjunction with a DD statement to achieve the task. The DD statement is to define the sequential file with PARM data.



          //STEP1 EXEC PGM=ABC,PARMDD=MYINPUT
          //MYINPUT DD DISP=SHR,DSN=MY.PARM.INPUT
          //SYSOUT DD SYSOUT=*


          Dataset MY.PARM.INPUT can have the value of date.



          Basically, you can't pass more than 100 bytes of data using PARM parameter. PARMDD is usually preferred if you want to pass data > 100 bytes.



          Hope this helps.






          share|improve this answer













          Assuming that your COBOL program already contain instructions to retrieve the information passed from JCL using PARM, you may use the PARMDD parameter in conjunction with a DD statement to achieve the task. The DD statement is to define the sequential file with PARM data.



          //STEP1 EXEC PGM=ABC,PARMDD=MYINPUT
          //MYINPUT DD DISP=SHR,DSN=MY.PARM.INPUT
          //SYSOUT DD SYSOUT=*


          Dataset MY.PARM.INPUT can have the value of date.



          Basically, you can't pass more than 100 bytes of data using PARM parameter. PARMDD is usually preferred if you want to pass data > 100 bytes.



          Hope this helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 23 at 9:12









          Srinivasan JVSrinivasan JV

          625510




          625510












          • Thank you so much. Its working.

            – deepaklearner
            Mar 23 at 17:39











          • Glad that my answer helped. Please mark this answer as accepted.

            – Srinivasan JV
            Apr 7 at 6:30

















          • Thank you so much. Its working.

            – deepaklearner
            Mar 23 at 17:39











          • Glad that my answer helped. Please mark this answer as accepted.

            – Srinivasan JV
            Apr 7 at 6:30
















          Thank you so much. Its working.

          – deepaklearner
          Mar 23 at 17:39





          Thank you so much. Its working.

          – deepaklearner
          Mar 23 at 17:39













          Glad that my answer helped. Please mark this answer as accepted.

          – Srinivasan JV
          Apr 7 at 6:30





          Glad that my answer helped. Please mark this answer as accepted.

          – Srinivasan JV
          Apr 7 at 6:30













          3














          You can not do this in the one job.
          Options include



          • Changing the program ABC to read from the file

          • Writing a program/rexx to read the file and call the program ABC

          • Read the file and Generate a new job that calls ABC with the date you have just read. This could be done in a rexx script.

          • Some scheduling systems might support this.

          Please provide a bit more information



          • What scheduling system does your company use

          • Is the program ABC a locally written program ??? that can be changed

          • Is the job part of a batch stream run automatically or submitted by a user.


          Manual Submission



          If the job is being submitted manually you could



          • Write a Rexx Script using ISPF file tailoring to generate && submit the JCL

          • Rexx Macro to update and submit the JCL

          ISPF Edit macro



          you could have



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          in the jour JCL
          and have the rexx edit macro



          • read the file

          • do a replace all on &date

          • I would use the same variables as Controlm

          With JCL



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          the edit macro would some thing like



           /* rexx */
          ADDRESS ISREDIT 'macro'
          Address TSO "EXECIO 1 DISKR indd"
          pull date
          ADDRESS ISREDIT "r $date$" date
          ADDRESS ISREDIT "cancel"


          The edit macro needs to be in the SYSPROC or SYSEXEC libraries. If the
          Macro is called ChgDate you would just






          share|improve this answer

























          • I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

            – deepaklearner
            Mar 23 at 2:07












          • I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

            – zarchasmpgmr
            Mar 23 at 17:31















          3














          You can not do this in the one job.
          Options include



          • Changing the program ABC to read from the file

          • Writing a program/rexx to read the file and call the program ABC

          • Read the file and Generate a new job that calls ABC with the date you have just read. This could be done in a rexx script.

          • Some scheduling systems might support this.

          Please provide a bit more information



          • What scheduling system does your company use

          • Is the program ABC a locally written program ??? that can be changed

          • Is the job part of a batch stream run automatically or submitted by a user.


          Manual Submission



          If the job is being submitted manually you could



          • Write a Rexx Script using ISPF file tailoring to generate && submit the JCL

          • Rexx Macro to update and submit the JCL

          ISPF Edit macro



          you could have



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          in the jour JCL
          and have the rexx edit macro



          • read the file

          • do a replace all on &date

          • I would use the same variables as Controlm

          With JCL



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          the edit macro would some thing like



           /* rexx */
          ADDRESS ISREDIT 'macro'
          Address TSO "EXECIO 1 DISKR indd"
          pull date
          ADDRESS ISREDIT "r $date$" date
          ADDRESS ISREDIT "cancel"


          The edit macro needs to be in the SYSPROC or SYSEXEC libraries. If the
          Macro is called ChgDate you would just






          share|improve this answer

























          • I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

            – deepaklearner
            Mar 23 at 2:07












          • I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

            – zarchasmpgmr
            Mar 23 at 17:31













          3












          3








          3







          You can not do this in the one job.
          Options include



          • Changing the program ABC to read from the file

          • Writing a program/rexx to read the file and call the program ABC

          • Read the file and Generate a new job that calls ABC with the date you have just read. This could be done in a rexx script.

          • Some scheduling systems might support this.

          Please provide a bit more information



          • What scheduling system does your company use

          • Is the program ABC a locally written program ??? that can be changed

          • Is the job part of a batch stream run automatically or submitted by a user.


          Manual Submission



          If the job is being submitted manually you could



          • Write a Rexx Script using ISPF file tailoring to generate && submit the JCL

          • Rexx Macro to update and submit the JCL

          ISPF Edit macro



          you could have



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          in the jour JCL
          and have the rexx edit macro



          • read the file

          • do a replace all on &date

          • I would use the same variables as Controlm

          With JCL



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          the edit macro would some thing like



           /* rexx */
          ADDRESS ISREDIT 'macro'
          Address TSO "EXECIO 1 DISKR indd"
          pull date
          ADDRESS ISREDIT "r $date$" date
          ADDRESS ISREDIT "cancel"


          The edit macro needs to be in the SYSPROC or SYSEXEC libraries. If the
          Macro is called ChgDate you would just






          share|improve this answer















          You can not do this in the one job.
          Options include



          • Changing the program ABC to read from the file

          • Writing a program/rexx to read the file and call the program ABC

          • Read the file and Generate a new job that calls ABC with the date you have just read. This could be done in a rexx script.

          • Some scheduling systems might support this.

          Please provide a bit more information



          • What scheduling system does your company use

          • Is the program ABC a locally written program ??? that can be changed

          • Is the job part of a batch stream run automatically or submitted by a user.


          Manual Submission



          If the job is being submitted manually you could



          • Write a Rexx Script using ISPF file tailoring to generate && submit the JCL

          • Rexx Macro to update and submit the JCL

          ISPF Edit macro



          you could have



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          in the jour JCL
          and have the rexx edit macro



          • read the file

          • do a replace all on &date

          • I would use the same variables as Controlm

          With JCL



          // set DATE=$Date$ 
          //STEP1 EXEC PGM=ABC,PARM='&date'


          the edit macro would some thing like



           /* rexx */
          ADDRESS ISREDIT 'macro'
          Address TSO "EXECIO 1 DISKR indd"
          pull date
          ADDRESS ISREDIT "r $date$" date
          ADDRESS ISREDIT "cancel"


          The edit macro needs to be in the SYSPROC or SYSEXEC libraries. If the
          Macro is called ChgDate you would just







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 23 at 2:57

























          answered Mar 23 at 1:30









          Bruce MartinBruce Martin

          8,38711632




          8,38711632












          • I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

            – deepaklearner
            Mar 23 at 2:07












          • I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

            – zarchasmpgmr
            Mar 23 at 17:31

















          • I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

            – deepaklearner
            Mar 23 at 2:07












          • I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

            – zarchasmpgmr
            Mar 23 at 17:31
















          I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

          – deepaklearner
          Mar 23 at 2:07






          I don't want to make change in Cobol program ABC. Job is submitted manually in test. I am not planning to schedule it in production. (In production the value is coming through Control-M variables). My aim is to reduce my burden to pass symbolic parameter values manually, when running in test.

          – deepaklearner
          Mar 23 at 2:07














          I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

          – zarchasmpgmr
          Mar 23 at 17:31





          I’d write a REXX script that reads in the file and builds the JCL for the COBOL program or dynamically allocate all the required DDs and invoke it.

          – zarchasmpgmr
          Mar 23 at 17:31

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309665%2fpassing-value-to-cobol-program-through-parm-using-data-in-sequential-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해